Whenever I use matplotlib, I will perform something like the following in an
ipython shell (no special flags):
import matplotlib.pyplot as plt
fig = plt.figure()
do things, like adding axes to the figure and plotting
fig.show()# this will cause the window to pop up, and give me back a
Greetings.
What i want to do is something like:
ipython ...
t=linspace(0,2,50)
y=sin(2*pi*t)
pyplot.plot(t,y)
pyplot.show()
I get the plot here ... but now i want to do some more stuff in
the ipython shell (and possibly have the plot still open)
How do i free the shell from the
qu...@gmx.at wrote:
Greetings.
What i want to do is something like:
ipython ...
t=linspace(0,2,50)
y=sin(2*pi*t)
pyplot.plot(t,y)
pyplot.show()
I get the plot here ... but now i want to do some more stuff in
the ipython shell (and possibly have the plot still open)
qu...@gmx.at wrote:
but i want to:
1) plot something
2) go on in ipython (with the figure/plot staying on)
is that really not possible?
thanks,
q
That's exactly what happens in ipython (in pylab mode), if you don't
call show.
-Jeff
On Tue, Oct 13, 2009 at 03:54:22PM -0600, Jeff