#include #include int main() { using namespace matplot; std::vector X = linspace(0, 4 * pi, 20); std::vector Y = transform(X, [](double x) { return sin(x); }); auto s = stairs(Y)->line_width(2).marker("d").marker_face_color("c"); show(); return 0; }