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

Function main

examples/annotations/rectangle/rectangle_4.cpp:4–18  ·  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 r = rectangle(1, 2, 5, 10);
8 r->fill(true);
9 r->color({0, .5, .5});
10 r->line_width(3);
11
12 auto r2 = rectangle(1, 2, 5, 10);
13 r2->color("blue");
14 r2->line_width(3);
15
16 show();
17 return 0;
18}

Callers

nothing calls this directly

Calls 5

rectangleFunction · 0.85
showFunction · 0.85
fillMethod · 0.45
colorMethod · 0.45
line_widthMethod · 0.45

Tested by

no test coverage detected