SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Small fix for SVG backend

From: Dieter W. <di...@ue...> - 2010年12月17日 09:22:51
Hi Mike,
sorry, I forgot my platform in my last mail!
I am running Ubuntu 10.04.1 LTS x86_64
Python: 2.6.5, Ubuntu
matplotlib: svn trunk, revision 8841
All other dependencies of matplotlib are installed as "normal" packages
of the distribution. Versions can be found here:
http://packages.ubuntu.com/lucid/python/
Would you like more information or should I run more tests?
Greetings,
Dieter
Am Donnerstag, den 16.12.2010, 15:40 -0500 schrieb Michael Droettboom:
> What platform are you on? It "works for me" on Fedora 14, RHEL 5 and 
> Cygwin.
> 
> Mike
> 
> On 12/16/2010 10:59 AM, Dieter Weber wrote:
> > #!/usr/bin/env python
> > # -*- coding: utf-8 -*-
> > import matplotlib
> > import matplotlib.pyplot as pp
> > import tempfile
> > import cStringIO as StringIO
> >
> > matplotlib.rcParams['svg.embed_char_paths'] = False
> >
> > pp.plot([1, 2], [1, 2], label=u"äöü")
> > pp.legend()
> >
> > # works
> > pp.savefig('test.svg')
> >
> > # breaks
> > with open('test2.svg', 'wb') as ofile:
> > pp.savefig(ofile, format='svg')
> >
> > # breaks
> > ostr = StringIO.StringIO()
> > pp.savefig(ostr, format='svg')
> 

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /