Re: [Matplotlib-users] cycling mechanism

2012-01-09 Thread Georg Brandl
On 01/05/2012 05:58 PM, Benjamin Root wrote: > > > On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root > wrote: > > > At the very least, it would help in compartmentallizing all the > possible > drawing attributes that are common across all artists. Current

Re: [Matplotlib-users] cycling mechanism

2012-01-06 Thread Benjamin Root
On Thu, Jan 5, 2012 at 3:18 PM, Ryan May wrote: > On Thu, Jan 5, 2012 at 2:59 PM, Daniel Hyams wrote: > > Right, __slots__ is definitely not a good idea to use except in very > > specific situations. I would strongly recommend against its usage here. > > > > http://groups.google.com/group/comp.

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Ryan May
On Thu, Jan 5, 2012 at 2:59 PM, Daniel Hyams wrote: > Right, __slots__ is definitely not a good idea to use except in very > specific situations.  I would strongly recommend against its usage here. > > http://groups.google.com/group/comp.lang.python/msg/0f2e859b9c002b28 I see that now. I had see

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Benjamin Root
On Thu, Jan 5, 2012 at 2:59 PM, Daniel Hyams wrote: > Right, __slots__ is definitely not a good idea to use except in very > specific situations. I would strongly recommend against its usage here. > > http://groups.google.com/group/comp.lang.python/msg/0f2e859b9c002b28 > > > Good to know. I hav

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Daniel Hyams
Right, __slots__ is definitely not a good idea to use except in very specific situations. I would strongly recommend against its usage here. http://groups.google.com/group/comp.lang.python/msg/0f2e859b9c002b28 On Thu, Jan 5, 2012 at 3:50 PM, Eric Firing wrote: > On 01/05/2012 07:34 AM, Ryan

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Eric Firing
On 01/05/2012 07:34 AM, Ryan May wrote: > On Thu, Jan 5, 2012 at 10:58 AM, Benjamin Root wrote: >> >> >> On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root wrote: >>> >>> At the very least, it would help in compartmentallizing all the possible drawing attributes that are common across all a

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Tony Yu
On Thu, Jan 5, 2012 at 11:51 AM, Benjamin Root wrote: > > > On Thu, Jan 5, 2012 at 7:56 AM, Jonathan Slavin > wrote: > >> Just one quick thought. I hope that you will implement a longer default >> color cycle than the current default. I have several times run into >> situations where I have to

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Benjamin Root
On Thu, Jan 5, 2012 at 11:34 AM, Ryan May wrote: > On Thu, Jan 5, 2012 at 10:58 AM, Benjamin Root wrote: > > > > > > On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root wrote: > >> > >> > >>> At the very least, it would help in compartmentallizing all the > possible > >>> drawing attributes that are

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Ryan May
On Thu, Jan 5, 2012 at 10:58 AM, Benjamin Root wrote: > > > On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root wrote: >> >> >>> At the very least, it would help in compartmentallizing all the possible >>> drawing attributes that are common across all artists.  Currently, I am >>> envisioning using a

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Benjamin Root
On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root wrote: > > At the very least, it would help in compartmentallizing all the possible >> drawing attributes that are common across all artists. Currently, I am >> envisioning using a defaultdict object (which was introduced in python 2.5) >> or subcla

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Benjamin Root
On Thu, Jan 5, 2012 at 7:56 AM, Jonathan Slavin wrote: > Just one quick thought. I hope that you will implement a longer default > color cycle than the current default. I have several times run into > situations where I have to either modify the cycle or specify the colors > manually because I h

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Benjamin Root
On Thu, Jan 5, 2012 at 6:45 AM, Michael Droettboom wrote: > This is great! Absolutely a much-needed and much-requested feature. > > I wonder, however, about the need for function-specific color cycles. Is > there a use case there? I'd be just as happy with a single global color > cycle that a

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Jonathan Slavin
Just one quick thought. I hope that you will implement a longer default color cycle than the current default. I have several times run into situations where I have to either modify the cycle or specify the colors manually because I had more than 7 lines. Also, it'd be nice to have the colors be

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Michael Droettboom
This is great! Absolutely a much-needed and much-requested feature. I wonder, however, about the need for function-specific color cycles. Is there a use case there? I'd be just as happy with a single global color cycle that all functions would use. I also like the suggestion of a "style" c

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Benjamin Root
On Wed, Jan 4, 2012 at 9:53 PM, Alejandro Weinstein < alejandro.weinst...@gmail.com> wrote: > > 2) I also have the need to implement line-style cycling for b&w > > publications. > > What about also grey level cycling for b&w? Sometimes for b&w it looks > better to use different gray levels rather

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Alejandro Weinstein
> 2) I also have the need to implement line-style cycling for b&w > publications. What about also grey level cycling for b&w? Sometimes for b&w it looks better to use different gray levels rather than different line-styles. See this for an example: http://media.aau.dk/null_space_pursuits/2011/06

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Benjamin Root
On Wed, Jan 4, 2012 at 9:33 PM, Ryan May wrote: > On Jan 4, 2012, at 20:52, Benjamin Root wrote: > > > Hello all, > > > > So, I am getting to the point where I need to implement a color cycling > mechanism throughout pyplot. So, before I get too deep in implementing it, > I have some thoughts t

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Ryan May
On Jan 4, 2012, at 20:52, Benjamin Root wrote: > Hello all, > > So, I am getting to the point where I need to implement a color cycling > mechanism throughout pyplot. So, before I get too deep in implementing it, I > have some thoughts that I need feedback on. > > 1) Not all plotting functio

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Fernando Perez
On Wed, Jan 4, 2012 at 6:52 PM, Benjamin Root wrote: > > Thoughts? Comments? None other than my eternal gratitude if you do this: it's one of the few things (perhaps the only one) I still miss from the old gnuplot, which made it trivial to switch from color to b/w mode and it would produce sensib

[Matplotlib-users] cycling mechanism

2012-01-04 Thread Benjamin Root
Hello all, So, I am getting to the point where I need to implement a color cycling mechanism throughout pyplot. So, before I get too deep in implementing it, I have some thoughts that I need feedback on. 1) Not all plotting functions use color cycling right now. Currently, only plot() and any f