From: Ted To <rai...@th...> - 2013-11-14 01:16:40
|
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 <rai...@th... > <mailto:rai...@th...>> 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 |