Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Nicolas P. Rougier
Actually, both syntax are valid. I think the problem in you svg parser is that you're changing the reference point each time you iterate in points. For example consider the path: m 100,200 c 100,100 400,100 400,200 z => (m P0 c P1 P2 P3 z) Your parser ended with vertex at (100.0, -200.0), (2

Re: [Matplotlib-users] Bar Graph and X-axis data marks

2015-03-04 Thread Sterling Smith
Nertskull, If no one responds, you might repost with some examples of what you’ve tried. I would suggest xticks and company, but I’m not sure if it works in your situation. -Sterling On Mar 4, 2015, at 6:20PM, Nertskull wrote: > I've searched and can't figure this out. > > And I'm not sure

[Matplotlib-users] Bar Graph and X-axis data marks

2015-03-04 Thread Nertskull
I've searched and can't figure this out. And I'm not sure exactly the best way to do it. Basically, I'm trying to make a bar graph, and I have about 400 bars (so 400 x-axis 'groups'). When I plot it, I get every bar labelled, but that is too much to be seen. How do I make it so I only label ever

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES
Le 04/03/2015 23:48, Thomas Caswell a écrit : That repo should probably be folded together with Tony Yu's style gallery code and eventually be migrated to live under the main matplotlib organization. I would also advocate for adding a bit of code into that repo to make it importable and to re

Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Jason Moore
Actually the notation I have is valid SVG path data. Your script could be modified to handle the more general forms, see: http://www.w3.org/TR/SVG/paths.html#PathDataGeneralInformation But this still doesn't answer why the smoothness is different between the SVG and matploblib paths. I haven't be

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Thomas Caswell
That repo should probably be folded together with Tony Yu's style gallery code and eventually be migrated to live under the main matplotlib organization. I would also advocate for adding a bit of code into that repo to make it importable and to register all/some of it's style files with the USER_L

Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Jason Moore
Thanks Nicolas for your code. The difference in what I have and what you share is in the svg path specification. For some reason Inkscape outputs a single leading "c" for the bezier curve in my path whereas your path has a "c" for every three points. I'm not quite sure the difference, maybe Inksca

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES
Le 04/03/2015 22:46, Yuxiang Wang a écrit : Hi Marin, +1 for the idea of specific papers. For example, all PLOS require the same figure format and I have my own config file. I'd be more than happy to dig into it and try my best to contribute. Shawn On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES

Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Nicolas P. Rougier
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 wrote: > > Hi, > > I have some SVGs w

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Yuxiang Wang
Hi Marin, +1 for the idea of specific papers. For example, all PLOS require the same figure format and I have my own config file. I'd be more than happy to dig into it and try my best to contribute. Shawn On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES wrote: > Le 04/03/2015 06:21, Tony Yu a écrit

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES
Le 04/03/2015 06:21, Tony Yu a écrit : On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever > wrote: I see seaborn has "paper, notebook, talk, and poster" options. http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html

[Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Jason Moore
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 ex

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Todd
On Wed, Mar 4, 2015 at 6:28 AM, Tony Yu wrote: > > > > On Tue, Mar 3, 2015 at 1:37 PM, Marin GILLES wrote: >> >> Le 03/03/2015 18:53, Thomas Caswell a écrit : >>> >>> I was thinking of the stand alone repository to just store the style files as the style module handles the loading pretty well. >