[matplotlib-devel] colors in backend_bases.py

2014-10-20 Thread Joel B. Mohler
Hi,

I'm working on https://github.com/matplotlib/matplotlib/pull/3393 and 
poking around at _alpha, _forced_alpha, _rgb, and _orig_color members of 
GraphicsContextBase.  I see quite a number of issues:

1)  "_rgb" is (almost) always a 4 tuple which may be better named "_rgba".
2)  "_orig_color" takes on many different value types -- I think it can 
be deleted and the "_rgb" variable used in the one place it is needed.
3)  "get_rgb" documents that it returns a 3 or 4 tuple.  In fact, I 
think it returns a 4-tuple (see point 1).  backend_ps.py is a 
particularly scary example of the 3 tuple interpretation being taken 
with-out further thought.
4)  I suppose there is a good reason for the existence of 
"_forced_alpha" and "_alpha", but I don't understand it.  Since "_rgb" 
is a 4-tuple in common (all?) usage, why can't "set_alpha" merely set 
"_rgb[3]"?

I'm going to be pushing something more to my branch at 
https://github.com/matplotlib/matplotlib/pull/3393 -- deleting 
"_orig_color" and renaming "_rgb" to "_rgba".  But even with these 
changes, the points above give me pause.

(I'm also sitting on irc right now asking these same questions).

Joel


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] gmail/youtube account

2014-10-20 Thread Benjamin Root
Sigh, I think that might have been set up by John.

Ben Root

On Fri, Oct 17, 2014 at 11:36 PM, Thomas Caswell  wrote:

> Does anyone on the list know the pass word (or control the recovery
> email address) for the matplotlib gmail account?  I would like to set
> up google analytics on our web site to see a) how much traffic we get
> and b) where people are going.
>
> Tom
>
> --
> Thomas Caswell
> tcasw...@gmail.com
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel