subsequent figures close immediately
Bug #313834 reported by
M Hickford
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
matplotlib (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Run something like this
#!/usr/bin/python
import pylab
for i in range(1,3):
X = [1,2]
Y = [i,2]
pylab.plot(X,Y)
pylab.show()
It should show a figure. When you close its window, a second figure will be plotted in a new window.
In intrepid: the second window closes immediately.
Should happen (happens on other platforms): the second window stays open.
Changed in matplotlib (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in matplotlib (Ubuntu): | |
status: | Triaged → Fix Released |
To post a comment you must log in.
On Sun, Jan 4, 2009 at 21:41, Matt H <email address hidden> wrote:
> Public bug reported:
>
> Run something like this
>
> #!/usr/bin/python
> import pylab
>
> for i in range(1,3):
> X = [1,2]
> Y = [i,2]
> pylab.plot(X,Y)
> pylab.show()
>
> It should show a figure.
if you want a single figure with 2 plots in it, then move pylab.show()
out ot for loop.
> When you close its window, a second figure will
> be plotted in a new window.
This is because pylab.show() displays the first image (the one with
diagonal line) and wait for you to close the popped-up window. Once
done, the loop goes into the second (and last) iteration, and show the
second plot in a different picture.
HTH, matrixhasu. altervista. org/ wiki.debian. org/SandroTosi
--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://
Me at Debian: http://