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

Function main

examples/line_plot/plot/plot_8.cpp:4–19  ·  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 std::vector<double> x = linspace(0, 180, 7);
8 std::vector<double> y = {0.8, 0.9, 0.1, 0.9, 0.6, 0.1, 0.3};
9 plot(x, y);
10 title("Time Plot");
11 xlabel("Time");
12 yrange({0, 1});
13 xticks({0, 30, 60, 90, 120, 150, 180});
14 xticklabels(
15 {"00:00s", "30:00", "01:00", "01:30", "02:00", "02:30", "03:00"});
16
17 show();
18 return 0;
19}

Callers

nothing calls this directly

Calls 8

linspaceFunction · 0.85
xlabelFunction · 0.85
yrangeFunction · 0.85
xticksFunction · 0.85
xticklabelsFunction · 0.85
showFunction · 0.85
plotFunction · 0.50
titleFunction · 0.50

Tested by

no test coverage detected