|
From: Nicolas P. R. <Nic...@in...> - 2015-03-04 21:53:25
|
Here is a (limited) SVG path parser I made some time ago: https://github.com/rougier/LinuxMag-HS-2014/blob/master/matplotlib/firefox.py The svg_parse function might just do what you're trying to achieve. Nicolas > On 04 Mar 2015, at 20:51, Jason Moore <moo...@gm...> wrote: > > Hi, > > I have some SVGs with closed Bezier curve paths that I'd like to convert to matplotlib paths. > > For example, here is some code: https://gist.github.com/moorepants/4cac02e798446bb46de7 > > The above script runs but the resulting path in matplotlib is less smooth that when opened in inkscape, for example. I've attached screenshots. > > I'm not sure why there is a difference. > > Any suggestions to get my matplotlib curves looking as smooth as they do in SVG format? > > Jason > moorepants.info > +01 530-601-9791 > <Selection_057.png><Selection_058.png>------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |