I am trying to use gnuplot to make a 'live' plot embedded in a C application, but I have encountered something that I want to change.
I am using gnuplot_i to 'interface' with gnuplot as if I were using gnuplot in the terminal. Whenever I plot (two lines) I save the data to a file to then tell gnuplot to load the file and plot.
I would like to not have to save a data file and load the data directly into gnuplot. I do not know much of gnuplot so there may be a simple solution for what I want. What I would like is to have a command like this:
plot [1,2,3,4], [1,1,1,1], [1,2,3,4], [2,2,2,2]
|_____line 1_______| |______line 2______|
Is there a way to do this in gnuplot?