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

Function main

examples/appearance/multiplot/subplot/subplot_13.cpp:3–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <matplot/matplot.h>
2
3int main() {
4 using namespace matplot;
5
6 auto ax1 = subplot(2, 1, 0);
7 auto [x, y, z] = peaks();
8 (void) x;
9 (void) y;
10 z = transpose(z);
11 plot(ax1, z);
12 xlim(ax1, {0, 20});
13
14 auto ax2 = subplot(2, 1, 1);
15 plot(ax2, z);
16
17 ax1->font_size(15);
18 ax2->line_width(2);
19
20 show();
21 return 0;
22}

Callers

nothing calls this directly

Calls 8

subplotFunction · 0.85
peaksFunction · 0.85
transposeFunction · 0.85
xlimFunction · 0.85
showFunction · 0.85
plotFunction · 0.50
font_sizeMethod · 0.45
line_widthMethod · 0.45

Tested by

no test coverage detected