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

Function main

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

Source from the content-addressed store, hash-verified

5#include <vector>
6
7int main() {
8 using namespace matplot;
9 for (size_t i = 0; i < 4; ++i) {
10 subplot(2, 2, i);
11 std::string equation = "cos(x**" + num2str(i + 1) + ") + " + num2str(i);
12 fplot(equation);
13 title(equation);
14 }
15 subplot(2, 2, 1, true);
16 fplot("sin(x)");
17 title("sin(x)");
18 show();
19 return 0;
20}

Callers

nothing calls this directly

Calls 5

subplotFunction · 0.85
num2strFunction · 0.85
fplotFunction · 0.85
showFunction · 0.85
titleFunction · 0.50

Tested by

no test coverage detected