Re: [Matplotlib-users] Non-interactive plotting to window?

2011-12-16 Thread John Thorstensen
Here is a script that solves the problem, based on Goyo's input: ** #!/usr/bin/env python """simple_matplot.py -- Repeatedly plots sinusoids (shifted a bit each time). - control returns to the user after each plot; - the old plot is erased between cycles. """ impo

Re: [Matplotlib-users] Non-interactive plotting to window?

2011-12-15 Thread Goyo
2011/12/15 John Thorstensen : > So my question:  Is there a simple way of getting matplotlib to display a > plot in a window and then surrender control to the main program, without > destroying the plot?  Something like a method to kill mainloop would be > ideal. Just make sure you use interactiv

[Matplotlib-users] Non-interactive plotting to window?

2011-12-15 Thread John Thorstensen
I have a sizeable number of python data-inspection scripts that work as follows: - read some data, or do something with it - plot the data - query the user on the command line and get a response - do what the user commands. These use the venerable PGPLOT package for the graphics, but this has be