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

Function main

examples/annotations/text/text_1.cpp:4–14  ·  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 std::vector<double> x = iota(0, pi / 20, 2 * pi);
8 std::vector<double> y = transform(x, [](auto x) { return sin(x); });
9 plot(x, y);
10 text(pi, 0, "← sin(π)");
11
12 show();
13 return 0;
14}

Callers

nothing calls this directly

Calls 5

iotaFunction · 0.85
transformFunction · 0.85
showFunction · 0.85
plotFunction · 0.50
textFunction · 0.50

Tested by

no test coverage detected