Giter VIP home page Giter VIP logo

Comments (1)

kookma avatar kookma commented on August 25, 2024

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!

from ogpf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.