Hi,
I could not have multiple savefig() ‘s with different styles.
I wrote a sample code on stackoverflow.
I got some help somebody posted his results (as a picture). If I copy-paste his code, and run it I got an “alloc: invalid block” error. And the following 2 pictures:
The color of labels and legendtext is still white..
Is it possible that it is a bug?
My system: Win7 + Python3.4 + MatPlotlib 1.4.2
Thx for helping
I had the same crash (
matplotlib alloc: invalid block
) in a similar code:This function has been called multiple times from the unit tests.
I have added this line to the end of my function:
And this error doesn’t occur anymore! 🙂