Indeed, it looks like there isn't a very good way to control all of the properties of the frame portion of a legend. This could certainly use some improvements, partly in allowing a dictionary of property values to be passed in `plt.legend()` (there is already a dictionary of font properties), but also to have some rcParams that could be made available, too. Such improvements are always welcome!
Cheers! Ben Root On Fri, Nov 13, 2015 at 7:57 AM, Daniele Nicolodi <dani...@grinta.net> wrote: > Hello, > > there is a way to control the edgecolor and the linewidth of the frame > drawn around the legend? I set the axes linewidth to 0.5 but the legend > frame linewidth is set to 1.0 and it does not look nice. Also, most of > the time I don't want the frame edge to be drawn at all. > > Always doing: > > l = plt.legend() > l.get_frame().set_edgecolor('none') > > is boring. > > If the setting are not there, would a patch adding a setting to style > the legend frame be considered? Additionally, would it make sense to > default the legend frame linewidth to the axes linewidth? > > Cheers, > Daniele > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users