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

Function main

examples/data_distribution/scatter/scatter_2.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <random>
3
4int main() {
5 using namespace matplot;
6
7 auto x = linspace(0, 3 * pi, 200);
8 auto y = transform(x, [&](double x) { return cos(x) + rand(0, 1); });
9 auto c = linspace(1, 10, x.size());
10
11 scatter(x, y, c);
12
13 show();
14 return 0;
15}

Callers

nothing calls this directly

Calls 6

linspaceFunction · 0.85
transformFunction · 0.85
randFunction · 0.85
showFunction · 0.85
scatterFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected