MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / main

Function main

examples/line_plot/plot3/plot3_7.cpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <matplot/matplot.h>
3
4int main() {
5 using namespace matplot;
6 auto t = linspace(-10, 10, 1000);
7 auto xt = transform(t, [](auto t) { return exp(-t / 10) * sin(5 * t); });
8 auto yt = transform(t, [](auto t) { return exp(-t / 10) * cos(5 * t); });
9 auto p = plot3(xt, yt, t);
10 p->line_width(3);
11 show();
12 return 0;
13}

Callers

nothing calls this directly

Calls 5

linspaceFunction · 0.85
transformFunction · 0.85
showFunction · 0.85
plot3Function · 0.50
line_widthMethod · 0.45

Tested by

no test coverage detected