用于散点图的 Sciplot c++

问题描述

有没有人用 C++ 中的 sciplot 库来创建散点图? https://sciplot.github.io/

我对“正常”图的示例很好,但我想知道我是否也能够创建散点图。 我在文档中没有找到提到散点图的内容

示例代码片段会很棒。

解决方法

Vec x = { 1,2,3 };
Vec y = { 4,5,6 };

Plot plot;
  
plot.drawPoints(x,y).pointType(0);

plot.show();