Passing data from C++ to gnuplot example (using Gnuplot-iostream interface)
问题 I have just come accross Dan Stahlke's gnuplot C++ I/O interface, which saves me from "rolling my own". Unfortunately, there are not too may examples and there ios no real documentation. I have the following data types in my C++ project: struct Data { std::string datestr; // x axis value float f1; // y axis series 1 float f2; // y axis series 2 float f3; // y axis series 3 }; typedef std::vector<Data> Dataset; I want to pass a Dataset variable from C++, so that I can plot the data (dates on