MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / plot

Method plot

src/fields2cover/utils/visualizer.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace f2c {
14
15void Visualizer::plot(
16 const std::vector<double>& t, const std::vector<double>& d,
17 const std::vector<double>& color) {
18 auto a = plt::plot(t, d);
19 a->line_width(getLineWidth());
20 a->color(plt::to_array(color));
21}
22
23void Visualizer::plot(double x, double y, const std::vector<double>& color) {
24 auto s = plt::scatter(std::vector<double>({x}), std::vector<double>({y}));

Calls 10

getPathMethod · 0.80
sizeTotalMethod · 0.80
asLineStringMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45
getXMethod · 0.45
getYMethod · 0.45
getGeometryMethod · 0.45
emplace_backMethod · 0.45
atEndMethod · 0.45