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

Function main

examples/line_plot/errorbar/errorbar_8.cpp:4–18  ·  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, 10, 15);
8 std::vector<double> y = transform(x, [](double x) { return sin(x / 2); });
9 std::vector<double> err(y.size(), 0.3);
10
11 auto e = errorbar(x, y, err, "-s")
12 ->marker_size(10)
13 .marker_color("red")
14 .marker_face_color("red");
15
16 show();
17 return 0;
18}

Callers

nothing calls this directly

Calls 8

linspaceFunction · 0.85
transformFunction · 0.85
showFunction · 0.85
marker_face_colorMethod · 0.80
marker_colorMethod · 0.80
errorbarFunction · 0.50
sizeMethod · 0.45
marker_sizeMethod · 0.45

Tested by

no test coverage detected