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

Function main

examples/line_plot/fplot/fplot_3.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([](double x) { return exp(x); }, std::array<double, 2>{-3, 0}, "b");
8 hold(on);
9 fplot([](double x) { return cos(x); }, std::array<double, 2>{0, 3}, "b");
10 hold(off);
11 grid(on);
12
13 show();
14 return 0;
15}

Callers

nothing calls this directly

Calls 4

fplotFunction · 0.85
holdFunction · 0.85
gridFunction · 0.85
showFunction · 0.85

Tested by

no test coverage detected