axis scaling in 2D line plot #132
-
Hi, double t = 0;
double dt = 2*M_PI / size;
for (unsigned i = 0; i < size; ++i) {
x[i] = std::sin(t);
y[i] = std::cos(t);
t += dt;
}
matplot::plot(x, y);
matplot::save("circle.pdf"); |
Beta Was this translation helpful? Give feedback.
Answered by
alandefreitas
Apr 1, 2021
Replies: 1 comment 1 reply
-
Maybe one of these functions can help you: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
c-humbel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe one of these functions can help you:
matplotplusplus/source/matplot/core/axes_type.h
Line 106 in 7fd8c9e