I see what is happening here... The SVG backend was recently re-written
to write some of the path data in C -- unfortunately the numbers being
written there are locale-aware, and in your locale it appears to be
using ',' as a decimal point.
I put up a fix for this here:
https://github.com/matplotlib/matplotlib/pull/369
In the meantime, you may have some luck by setting your locale before
running python, i.e.:
LANG=en_US.UTF-8 python svg_export2.py
Cheers,
Mike
On 06/21/2011 06:47 AM, Dieter Weber wrote:
Hi folks,
when I tried to export figures as SVG, the result was completely messed
up. Export in other formats works.
Appended you find:
* Script to reproduce error
* Broken SVG
* Working EPS
* Broken SVG rendered by Gnome image viewer (eog)
* Broken SVG rendered by Inkscape
Setup:
Ubuntu 10.04 LTS
Python 2.6.5 (stock)
Matplotlib current version from git, installed with "python setupegg.py
develop"
Can you reproduce the problem on your machine?
Greetings,
Dieter
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel