You have to call plt.show() only when you want to actually show the
figure. That's because you're using python command interpreter.
plt.ylim( (1.5,4.5) )
If you want to do interactive plotting, I suggest using ipython.
already import the pylab module, that provide all the pyplot functions.
I prefer to do something like
import matplotlib.pyplot as plt
plt.ion() # incase it's not already in interactive mode
<do my printing>
This way, it will open the figure window and you'll be able to
"decorate" the plot in the ipython shell and see the result applied to
the "background" figure with no need to execute "plt.show()" or close
the windows between a command and a "show()".
On Sat, Mar 28, 2009 at 15:45, Bala subramanian <bala.biophysics@...287...> wrote:
In the following. I am not able to understand how this plot.show() works. I
have commented the problem in the following examples.
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi