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

Function main

examples/line_plot/errorbar/errorbar_9.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 = linspace(0, 2, 15);
8 std::vector<double> y = transform(x, [](double x) { return exp(x); });
9 std::vector<double> err(y.size(), 0.3);
10
11 auto e = errorbar(x, y, err)->cap_size(18);
12
13 show();
14 return 0;
15}

Callers

nothing calls this directly

Calls 6

linspaceFunction · 0.85
transformFunction · 0.85
showFunction · 0.85
errorbarFunction · 0.50
sizeMethod · 0.45
cap_sizeMethod · 0.45

Tested by

no test coverage detected