This is an example for the points geometry which uses the classic Iris data set
Output
#include <fstream>
#include <random>
int main() {
"http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data",
{"sepal_length", "sepal_width", "petal_length", "petal_width", "class"});
auto ax = fig->axis();
auto data = create_data()
.x(csv["sepal_length"])
.y(csv["sepal_width"])
.color(csv["petal_width"]);
auto points = ax->points(data);
ax->xlabel("sepal length");
ax->ylabel("sepal width");
#ifdef TRASE_EXAMPLES_SVG_BACKEND
std::ofstream out;
out.open("example_points.svg");
fig->draw(backend);
out.close();
#endif
#ifdef TRASE_EXAMPLES_GL_BACKEND
fig->show(backend);
#endif
}