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

Function main

examples/line_plot/errorbar/errorbar_3.cpp:4–14  ·  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 = {5, 8, 2, 9, 3, 3, 8, 3, 9, 3};
10 errorbar(x, y, err);
11 axis({0, 100, 0, 110});
12 show();
13 return 0;
14}

Callers

nothing calls this directly

Calls 4

iotaFunction · 0.85
axisFunction · 0.85
showFunction · 0.85
errorbarFunction · 0.50

Tested by

no test coverage detected