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

Function main

examples/annotations/textarrow/textarrow_2.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 plot(iota(1, 10));
8 auto [t, a] = textarrow(2.5, 6.5, 5, 5, "y=x");
9 t->color("red").font_size(14);
10 a->color("blue");
11
12 show();
13 return 0;
14}

Callers

nothing calls this directly

Calls 6

iotaFunction · 0.85
textarrowFunction · 0.85
showFunction · 0.85
plotFunction · 0.50
font_sizeMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected