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

Function main

examples/line_plot/errorbar/errorbar_2.cpp:4–16  ·  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 = iota(0, 10, 100);
8 std::vector<double> y = {20, 30, 45, 40, 60, 65, 80, 75, 95, 90};
9 std::vector<double> err(y.size(), 10.);
10 errorbar(x, y, err)->filled_curve(true);
11
12 axis({0, 100, 0, 110});
13
14 show();
15 return 0;
16}

Callers

nothing calls this directly

Calls 6

iotaFunction · 0.85
axisFunction · 0.85
showFunction · 0.85
filled_curveMethod · 0.80
errorbarFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected