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

Function main

examples/line_plot/errorbar/errorbar_6.cpp:4–15  ·  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 = {4, 3, 5, 3, 5, 3, 6, 4, 3, 3};
10 errorbar(x, y, err, error_bar::type::both, "o");
11 axis({0, 100, 0, 100});
12 axis(equal);
13 show();
14 return 0;
15}

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