[SciPy-user] Re: [SciPy-dev] Interactive versus batch mode

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Aug 16 10:00:12 CDT 2002


Prabhu Ramachandran schrieb:
> 
> >>>>> "NW" == Nils Wagner <nwagner at mecha.uni-stuttgart.de> writes:
> 
>     NW> Hi, As far as I know the features of plt are only useful in an
>     NW> interactive mode.  If I execute
> 
> [snip]
> 
>     NW> What can I do to benefit from the zoom function of plt in
>     NW> batch mode ?
> 
> Hmm, what I used to do is add a line like so:
> 
> raw_input('\nPress enter to finish.')
> 
> and that would keep the window alive.
> 

I followed your suggestion, but the menu items File and Titles disappear
in that case !

#! /usr/local/bin/python
from scipy import *
import gui_thread
from scipy import plt
x = arange(0.,2.*pi,0.01)
y = sin(x)
plt.plot(x,y)
raw_input('\nPress enter to finish.')

Nils
 
> prabhu
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list