Git Product home page Git Product logo

Comments (13)

fccf avatar fccf commented on June 12, 2024

from ogpf.

kookma avatar kookma commented on June 12, 2024

Hi @CRquantum
Thank you! I think this should be possible. I keep this open to find free time to give it a try!
If worked successfully I add it.

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

Great thank you! Again nice package!

from ogpf.

fccf avatar fccf commented on June 12, 2024

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

Oh, another question. Is there a way to show the plot in real time?
I mean like, just in the same windows, show (x(1),y(1)), (x(2),y(2)),...(x(10),y(10)) as x(i) and y(i) are generated in the loop?
Like

do i=1,10
    x(i) = xxxxx
    y(i) = yyyyy
    -> here, you know, plot(x(1:i), y(1:i)) in just only one popup windows, and display and update (x(1:i), y(1:i)) in real time.
enddo

Thank you very much! This real time display/updating in just one windows will be really very useful bro! LOL!

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

I mean I noticed the animation function, but it seems it need to wait until the whole x and y loop finished, then in one window, it can display y vs x as animation. But I wonder is it possible show y .vs. x animation during the loop, and in the same popup window. Thank you very much!

from ogpf.

kookma avatar kookma commented on June 12, 2024

Oh, another question. Is there a way to show the plot in real time?
I mean like, just in the same windows, show (x(1),y(1)), (x(2),y(2)),...(x(10),y(10)) as x(i) and y(i) are generated in the loop?

The ogpf is wrapper around gnuplot! So everything is supported by gnuplot is supported by ogpf. You should not ogpf work in asynchronous way! It has to write everything in a file and then plot so, before start plotting you should have all those data to be plotted!
If you update the data, then you have to create a new output!

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

Thank you my man!
Please see the discussion here,
https://fortran-lang.discourse.group/t/how-to-use-fortran-gnuplot-to-plot-in-real-time-in-just-one-window/2904/11
I added at the end of your scipt

pause 1
reread

Now it can display the changes in the plot in real time.
If in the future you may add this property it could be very nice :) Sometimes the display in real time can be very useful.

from ogpf.

kookma avatar kookma commented on June 12, 2024

Thank you @CRquantum
I will look into it! It would be nice to have this feature!

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

Thank you bro. Yeah it can work it will be really very useful :)

from ogpf.

kookma avatar kookma commented on June 12, 2024

@CRquantum
I would appreciate to submit a PR when you have time. I am very busy and I forgot about this.

from ogpf.

CRquantum avatar CRquantum commented on June 12, 2024

from ogpf.

kookma avatar kookma commented on June 12, 2024

A PR is a pull request, that means you can form the repo, change the code and push it for merging!
Then others can review your change and if approved merge into the repository!
In final you have the revised/improved code!

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.