You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you mean?
if you mean to have an open window and add more plots interactively, no, ogpf does not support this!
Actually gnuplot does not support this! and every plot clear the previous one!
How ogpf works?
ogpf works in a semi interactive mode. It writes all data and commands into a gnuplot file and then calls the gnuplot through a system command! So before you have the plot command you should write all your data into a file!
How to have several plots in the same window?
Solution 1. ogpf plot command can plot up to four series of data, if you you have four or less data, prepare all them and issue the plot command at the end!
Solution 2. If you want to replot in the same window, because your data are available at several stage of problem solution, then plot each data series is available and then when other data available replot them
e.g
call gp%plot(x1=x, y1=y)
! later on you have more data
..
call gp%plot(x1=x, y1=y, x2=xx, y2=yy)
! later on you have two more data series
call gp%plot(x1=x, y1=y, x2=xx, y2=yy, x3=xxx, y3=yyy, x4=xiv, y4=yiv))
Solution 3. If your data have the same length (number) then as you get more data for ploting add them to a matrix and plot a matrix.vs.matrix
Summary:
If you want to plot more data in the same window, it is possible in a semi interactive mode.
If you want something like "hold on" in Matlab, this version does not support.
A new version of ogpf is under the way which is much more complicated and it has support for hold on!
Is there a way to plot continuously in the same figure?
The text was updated successfully, but these errors were encountered: