Plotting Armadillo matrix data
Hi,
Thank you for this small library. Is there any way to plot Armadillo data matrix using this library, without saving the data to a file?
Thanks
I didn't use Armadillo myself yet, but in principle you can send any data to gnuplot via sendLine. You might want to set useBuffer = true.
A good way to get this working would be to:
- Create a gnuplot script first and read the data from a file.
- Integrate this script into C++ by sending the identical commands to gnuplot.
Let me know if you run into any issues when doing this.
Using a C++ program I am able to plot any variable/matrix data by storing the data in a file temporarily. However, this is time-consuming and not an efficient way to plot data from a program. Is there any way to plot the armadillo matrix?
In other places, some are converting the armadillo data to tuple using other library. However your library is more efficient and small to do the same work except direct plotting.
I have a similar issue, I need to plot signals and apply some signal processing like ftt and then plot them in real-time. Is it possible to send variables declared within a c++ script to gnuplot without saving the content of this variable to file and then read it?