I was trying to monitor the change of some parameters using JavaPlot.
Is there a way to simply update the plot of data in the original plot?
I was trying to monitor the change of some parameters using JavaPlot.
Is there a way to simply update the plot of data in the original plot?
I think you cannot do this with JavaPlot.
JavaPlot doesn't have a single gnuplot instance running in the background which it pipes commands to. For every plot it creates a new temporary file which is then called with gnuplot. That means, that after using
p.plot()you don't have any access to the gnuplot window containing the plot.Consider the following short example:
That opens two windows and prints the messages:
You see that two different temporary files are created.