Hi Blaine, let me first of all give you the reference to some documentation about the usage of show: http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show
Furthermore I may recommend you to replace your call of show in 'p' by a call of draw, which will yield the expected behaviour in ipythons pylab mode. Hopefully these hints are helpful to you. best regards Matthias On Monday 20 July 2009 19:36:24 Blaine Booher wrote: > hey everyone, > I have an interactive python application that I am using pylab with. I > am having a problem where I can only create a graph ONE time. all other > calls to plot() and show() cause nothing to happen. > > I have used ipython -pylab as well, but the problem I am having with > ipython is that all the graphs will show up AFTER i close my interactive > shell. Of course, ipython works interatively every time I 'plot' or 'show' > at the ipython command line. > > Is this a backend issue? Does anyone else have this problem? > > issue can be summarized as such: > >>>from pylab import * > >>>def p(): > > plot([1,2], [1,2]) > show() > > >>>p() // works fine. graph pops up. > >>>p() //returns nothing, no graph shows up > >>>p() //same as above > > I am on Debian Lenny, pylab .98.3-5 > > Blaine ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users