#include #include int main() { using namespace matplot; std::vector x = linspace(0, 2 * pi, 25); std::vector y = transform(x, [](auto x) { return cos(2 * x); }); auto s = stem(x, y)->line_style("-.").marker_face_color("red").marker_color( "green"); show(); return 0; }