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

> >> 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.
> >
> > 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?
>
> That's right, yes.  Currently, bar() does not handle the string 'none'
> properly; it results in an empty graph.  E.g.:
>
>   bar([1, 2, 3], [12, 13, 14], edgecolor = None)
>
> behaves correctly, giving a bar chart with black-edged blue bars.
>
>   bar([1, 2, 3], [12, 13, 14], edgecolor = 'none')
>
> gives no graph at all.  After the patch, the second call gives the right
> result, a bar-chart with border-less blue bars.  Same kind of thing with
> the kwarg 'color' instead of 'edgecolor', which is also fixed in my
> second recent email.
>
> Hope this clarifies things.  Thanks,
>
> Ben.
>
>
Looking through the code for bar(), I see the same thing occurs for the
'color' keyword argument.  So I guess we should fix that as well.  If no one
has any objections, I can commit this fix.

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