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

Function main

examples/appearance/multiplot/subplot/subplot_7.cpp:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <vector>
6
7int main() {
8 using namespace matplot;
9 std::vector<axes_handle> ax;
10 for (size_t i = 0; i < 4; ++i) {
11 ax.emplace_back(subplot(2, 2, i));
12 }
13
14 subplot(ax[1]);
15 auto p = fplot("sin(x)");
16 p->line_spec().color({0.1f, 0.5f, 0.1f});
17 p->line_spec().line_width(2);
18 title("Second subplot");
19 axis({0, 50, -1, 1});
20
21 show();
22 return 0;
23}

Callers

nothing calls this directly

Calls 8

subplotFunction · 0.85
fplotFunction · 0.85
axisFunction · 0.85
showFunction · 0.85
line_specMethod · 0.80
titleFunction · 0.50
colorMethod · 0.45
line_widthMethod · 0.45

Tested by

no test coverage detected