0.86 vs 0.87 plot difference?

Hi,

I have 2 questions.

First, after upgrading from 0.86 to 0.87, my graphics aren't the same. On 0.87, they are "squeezed" horizontally, which is bad. You can see an exemple on those (SVG exported to PNG via Inkscape):
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2.png
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.87.4.png

The original SVGs are :
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2.svg
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.87.4.svg

What is causing this? Did something changed that I need to adapt my code or is it a bug?

Second, as you can see on the PNG, I can't see well the TeX characters (look at the "x" axis, it should be "x (um)" with "u" being mu, the micron symbol http://en.wikipedia.org/wiki/Mu_(letter)). Those graphics are saved directly to SVG, without any GUI. If I display the graphic on my screen (without saving to SVG), I get that screen :
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2_X.png
If I then save the file to PNG, I get this one :
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2_X_save.png
witch is ok. But if I save to SVG, I get this one :
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2_X_save.svg
Exported to PNG, the latter is :
http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2_X_save_svg.png

Clearly, matplotlib's SVG backend doesn't seems to support TeX characters. Is it supposed to? Is it possible to hope it will?

Thanks!

Nicolas

Hi,
What is causing this? Did something changed that I need to adapt my code
or is it a bug?

Check the "aspect" keyword of your image, and try to set it to 'auto'.

Clearly, matplotlib's SVG backend doesn't seems to support TeX
characters. Is it supposed to?

Yes.
http://matplotlib.sourceforge.net/matplotlib.texmanager.html

Is it possible to hope it will?

Pass

ยทยทยท

On Monday 04 September 2006 14:28, Nicolas Bigaouette wrote: