On Sun, Jan 4, 2009 at 21:41, Matt H <matt.hickf...@gmail.com> 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, -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- subsequent figures close immediately https://bugs.launchpad.net/bugs/313834 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs