Thanks Ben!

I was wondering if you can help me with a related question.  How does
one change the artist for the legend?  Since I have a "step" histogram,
it would be nice to have the legend display lines rather than outlined
rectangles.

Thanks,
Ted

On 11/13/2013 09:35 AM, Benjamin Root wrote:
> 
> 
> 
> On Tue, Nov 12, 2013 at 8:01 PM, Ted To <rainexpec...@theo.to
> <mailto:rainexpec...@theo.to>> wrote:
> 
>     Perfect!  Many thanks!  Seems to be an undocumented feature...
> 
> 
> Not undocumented. In the docs for hist(), it says that it accepts any
> parameter that is used for Patch artists. This is also generally true
> for many of the other plotting functions. They usually take any
> additional keyword arguments that could be passed on to whatever the
> artist is that is returned. This isn't a hard-and-fast rule, but it is
> true more often than not.
> 
>  
> 
>     Out of curiosity, what is the rationale behind using 'dashed' and
>     'dashdot' instead of '--' and '-.'?
> 
> 
> This is an inadvertent oversight. I noted this in
> https://github.com/matplotlib/matplotlib/issues/2136
> 
> Cheers!
> Ben Root

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to