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

Function main

examples/line_plot/fplot/fplot_4.cpp:4–16  ·  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
7 auto f = fplot([](double x) { return sin(x + pi / 5); });
8 f->line_width(2);
9 hold(on);
10 fplot([](double x) { return sin(x - pi / 5); }, "--or");
11 fplot([](double x) { return sin(x); }, "-.*c");
12 hold(off);
13
14 show();
15 return 0;
16}

Callers

nothing calls this directly

Calls 4

fplotFunction · 0.85
holdFunction · 0.85
showFunction · 0.85
line_widthMethod · 0.45

Tested by

no test coverage detected