#include "xplot/xfigure.hpp" #include "xplot/xmarks.hpp" #include "xplot/xaxes.hpp" xpl::figure fig; fig xpl::linear_scale sx, sy; xpl::lines line(sx, sy); line.x = std::vector({0.0, 0.5, 1.0, 1.1, 1.2, 1.3}); line.y = std::vector({0.0, 0.7, 0.5, 1.1, 1.2, 1.2}); fig.add_mark(line) line.colors = std::vector({"red"}); xpl::axis hx(sx), hy(sy); hy.orientation = "vertical"; fig.add_axis(hx); fig.add_axis(hy); fig.remove_mark(line)