Re: [Matplotlib-users] unfilled markers?

2009-01-28 Thread John Hunter
On Wed, Jan 28, 2009 at 9:42 AM, Rob Hetland wrote: > > On Jan 27, 2009, at 1:02 PM, Eric Firing wrote: > >> Setting >> mfc to "none" is what turns off the filling. > > As a slightly off-topic question, is there a reason that the argument > is the string 'none' instead of a normal python None? No

Re: [Matplotlib-users] unfilled markers?

2009-01-28 Thread Rob Hetland
On Jan 27, 2009, at 1:02 PM, Eric Firing wrote: > Setting > mfc to "none" is what turns off the filling. As a slightly off-topic question, is there a reason that the argument is the string 'none' instead of a normal python None? -Rob Rob Hetland, Associate Professor Dept. of Oceanograph

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Gary Ruben
It just occurred to me that another option might be to simply add a new colour option "line" for mec and mfc which would instruct them to pick up the current line colour. Gary -- This SF.net email is sponsored by: Sourc

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Eric Firing
Norbert Nemec wrote: > Before my work in 2004, the colors were not following the line color at > all, which was clearly bad behavior. > > Now, there are two categories: filled markers (with edge color black and > filling following the line color) and non-filled markers (with edge > color follow

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Gary Ruben
Hi Norbert, Both of your proposals (b) and (c) sound better to me than the current behaviour, although they don't sound as obvious to me as simply defaulting to always setting the mec to the line colour unless overridden using mec="k" - you could label this proposal (d). Since others seem to h

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Norbert Nemec
Before my work in 2004, the colors were not following the line color at all, which was clearly bad behavior. Now, there are two categories: filled markers (with edge color black and filling following the line color) and non-filled markers (with edge color following line color). The black edge

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread Gary Ruben
Thanks John, That shows how long it is since I used line markers in my plots. Because I use them so infrequently, I'm probably not the best one to suggest it, but I think it would be nicer for the default colour to match the line colour by default, or for an option to be added to allow its simp

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 6:17 AM, Gary Ruben wrote: > Has the mec always been black? I thought it used to be the same as the > line colour. I expected it to default to the line colour, as Che expected. It's been this way since at least 2004: http://matplotlib.svn.sourceforge.net/viewvc/matplot

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread Gary Ruben
Has the mec always been black? I thought it used to be the same as the line colour. I expected it to default to the line colour, as Che expected. Gary R. Norbert Nemec wrote: > Sorry for my misleading words - I did not correctly recall my own work > from back then... > > In fact, the code as i

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Jae-Joon Lee
> > Norbert, > > It did, thank you! One question, though: when I originally tried > something like this, it didn't work, because it was treating pl as a list > and giving me the error of > "list object has no attribute 'set_mec()'" Why does the addition of the > comma to pl allow it to see it a

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
On Sun, Jan 25, 2009 at 6:44 PM, Norbert Nemec wrote: > Sorry for my misleading words - I did not correctly recall my own work from > back then... > > In fact, the code as it is does not change the mec automatically when the > mfc of a filled_marker is set to "None" but leaves it black. I did cons

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Norbert Nemec
Sorry for my misleading words - I did not correctly recall my own work from back then... In fact, the code as it is does not change the mec automatically when the mfc of a filled_marker is set to "None" but leaves it black. I did consider adding an automation to change but decided against it. T

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
>>> mfc="None" does the job. mec should then default to the line color. >> Hmm, I just tried that and it doesn't default to the line color, it >> instead makes a black edge color for the marker. I am still using >> version 0.90.1; is this a newer feature in the latest release? (yes, I >> will upg

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Norbert Nemec
mfc="None" does the job. mec should then default to the line color. C M wrote: > Sorry this is a basic question but I can't figure out where > in the docs nor archives I could find this. > > Is there a built in method for having unfilled markers? > (ones that match the line color). > > I could se

[Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
Sorry this is a basic question but I can't figure out where in the docs nor archives I could find this. Is there a built in method for having unfilled markers? (ones that match the line color). I could set mfc (marker face color) to white and mec (marker edge color) to the color of my line, but w