• Polot severa figures inside a for loopin

    From Jorge Conrado Conforte@21:1/5 to All on Sat Oct 8 16:22:24 2022
    HI,

    I already use the IDL to plot data. Inside a for looping I plot and save my data and kill the window using the wdelete IDL command for close the window automatically.
    Now I'm using the Python to rea several netcdf 2d data. I plot my data and save it. But, I don't know how can I kill the window automatically to plot the next figure.
    Please how can I do this using PYthon,

    Thanks,

    Conrado

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Cameron Simpson@21:1/5 to Jorge Conrado Conforte on Sun Oct 9 09:27:55 2022
    On 08Oct2022 16:22, "Jorge Conrado Conforte" <[email protected]> wrote:
    I already use the IDL to plot data. Inside a for looping I plot and
    save my data and kill the window using the wdelete IDL command for
    close the window automatically.
    Now I'm using the Python to rea several netcdf 2d data. I plot my data and save it. But, I don't know how can I kill the window automatically to plot the next figure.
    Please how can I do this using PYthon,

    Can you show us the code you've got to do the first part with `wdelete`?
    Please paste the code inline in the message; this list strips
    attachments such as screenshots. (And we can't copy/paste from a
    screenshot anyway.)

    And what's IDL? Can you provide a URL to it?

    Cheers,
    Cameron Simpson <[email protected]>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Sat Oct 8 20:43:14 2022
    On Sun, 9 Oct 2022 09:27:55 +1100, Cameron Simpson <[email protected]>
    declaimed the following:



    And what's IDL? Can you provide a URL to it?


    Off hand, given the references to plots, and netcdf & 2D specifically...

    <https://en.wikipedia.org/wiki/IDL_(programming_language)>

    So a nearly different domain of languages... I'd hope the OP is porting IDL constructs (vector/array) to numpy/scipy.

    But that also opens the question of what plotting package is being used? Matplotlib or something else?



    --
    Wulfraed Dennis Lee Bieber AF6VN
    [email protected] http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)