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

Function main

examples/line_plot/fplot/fplot_1.cpp:4–15  ·  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 fplot("cos(x)", "o-r")->line_width(2);
8 hold(on);
9 fplot([](double x) { return sin(x); }, std::array<double, 2>{-10, 10},
10 "x--b")
11 ->line_width(2);
12
13 show();
14 return 0;
15}

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