"persistent" plot windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rodrigo Lopez-Negrete

    #1

    "persistent" plot windows

    Hi all,

    I'm trying to write a python script using plotting form pylab.
    Unfortunatelly I've encountered a problem. When I run the script via
    'python myscript.py' the plot windows open and close very quickly, or
    when I added the show() command the shell window was locked until I
    closed the figures.

    My question is: is there a way to open those windows in the background
    without blocking the shell and without running it interactively??
    something like gnuplot -persist?

    Thanks all,
    Rodrigo Lopez-Negrete

  • James Stroud

    #2
    Re: "persisten t" plot windows

    Rodrigo Lopez-Negrete wrote:
    Hi all,
    >
    I'm trying to write a python script using plotting form pylab.
    Unfortunatelly I've encountered a problem. When I run the script via
    'python myscript.py' the plot windows open and close very quickly, or
    when I added the show() command the shell window was locked until I
    closed the figures.
    >
    My question is: is there a way to open those windows in the background
    without blocking the shell and without running it interactively??
    something like gnuplot -persist?
    >
    Thanks all,
    Rodrigo Lopez-Negrete
    >
    python whatever.py &


    (Don't forget the ampersand!)

    James

    Comment

    • Rodrigo Lopez-Negrete

      #3
      Re: "persisten t" plot windows

      Hi James,

      Thanks for the answer, the ampersand only works if I use the show()
      command at the end of my script. I guess that helps although I haven't
      tested it with plotting subroutines.

      cheers,
      Rodrigo

      On Mar 24, 6:50 pm, James Stroud <jstr...@mbi.uc la.eduwrote:
      Rodrigo Lopez-Negrete wrote:
      Hi all,
      >
      I'm trying to write a python script using plotting form pylab.
      Unfortunatelly I've encountered a problem. When I run the script via
      'python myscript.py' the plot windows open and close very quickly, or
      when I added the show() command the shell window was locked until I
      closed the figures.
      >
      My question is: is there a way to open those windows in the background
      without blocking the shell and without running it interactively??
      something like gnuplot -persist?
      >
      Thanks all,
      Rodrigo Lopez-Negrete
      >
      python whatever.py &
      >
      (Don't forget the ampersand!)
      >
      James

      Comment

      Working...