#include #include int main() { using namespace matplot; double r = 2; double xc = 4; double yc = 3; std::vector theta = linspace(0, 2*pi); std::vector x = transform(theta,[=](auto theta) {return r*cos(theta)+xc;}); std::vector y = transform(theta,[=](auto theta) {return r*sin(theta)+yc;}); plot(x,y); axis(equal); wait(); return 0; }