On Mon, Aug 9, 2010 at 3:28 AM, Ben North <b...@redfrontdoor.org> wrote:

> Hi,
>
> I tried to use "edgecolor = 'none'" in a call to bar(), hoping to get no
> border to the bars, but instead got no bars at all.  The patch below
> (against 1.0.0) seems to fix this; it adds a check for 'none' to the
> existing check for None as a special case of the edgecolor argument.
>
> Thanks,
>
> Ben.
>
>
>
>
> --- ORIG-axes.py        2010-07-06 15:43:35.000000000 +0100
> +++ NEW-axes.py 2010-08-09 09:16:51.000004000 +0100
> @@ -4582,8 +4582,9 @@
>             if len(color) < nbars:
>                 color *= nbars
>
> -        if edgecolor is None:
> -            edgecolor = [None] * nbars
> +        if (edgecolor is None
> +            or (is_string_like(edgecolor) and edgecolor.lower() ==
> 'none')):
> +            edgecolor = [edgecolor] * nbars
>         else:
>             edgecolor =
> list(mcolors.colorConverter.to_rgba_array(edgecolor))
>             if len(edgecolor) < nbars:
>
>
Just to note, the documentation does specify a difference between None and
'none'.  None means to use the rcdefaults and 'none' means no color at all.
Is bar() just simply not properly handling the 'none' case?

Ben Root
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to