On Mon, May 25, 2009 at 1:01 PM, Esmail <eb...@ho...> wrote:
> Hello John,
>
> \John Hunter wrote:
>> On Mon, May 25, 2009 at 12:32 PM, Esmail <eb...@ho...> 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
|