On Mon, May 25, 2009 at 1:01 PM, Esmail <ebo...@hotmail.com> wrote: > Hello John, > > \John Hunter wrote: >> On Mon, May 25, 2009 at 12:32 PM, Esmail <ebo...@hotmail.com> wrote: >>> Hi all, >>> >>> I'm new to pylab/matplotlib, so perhaps I am making a mistake here, >>> but when I try to save a plot under Windows as a png file, the program >>> crashes (pdf works fine). >>> >> >> I don't have a windows box to test on today (I can try tomorrow from >> work). > > That would be helpful. > >> Most likely, you have a problem of an install over an old >> install. Try installing mpl and numpy cleanly by removing all the >> numpy* and matplotlib* files from your site-packages dir and >> reinstalling. > > I didnt' have either of those packages installed before, so that > should not be a problem, but I will take a look at the links you > sent. > > Thanks .. it'll be interesting to see if the problem can be > reproduced.
One thing I just noticed -- you call show before savefig. show is supposed to be the last line in your script, and should only be called once. Does moving it to the end help? JDH ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users