Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting Armadillo matrix data #1

Open
kapil-iitk opened this issue Apr 24, 2020 · 3 comments
Open

Plotting Armadillo matrix data #1

kapil-iitk opened this issue Apr 24, 2020 · 3 comments

Comments

@kapil-iitk
Copy link

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

@martinruenz
Copy link
Owner

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:

  1. Create a gnuplot script first and read the data from a file.
  2. Integrate this script into C++ by sending the identical commands to gnuplot.

Let me know if you run into any issues when doing this.

@kapil-iitk
Copy link
Author

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.

@mariankyoussef
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants