[Matplotlib-users] facecolor for legend with alpha and shadow
pmhobson at gmail.com
Tue May 15 13:29:37 EDT 2018
I think with the transparent legend face, you're seeing the dark shadow
underneath it. This seems to be reflected when changing the alpha
values.The shadow itself if is a polygon the same size of the legend,
z-ordered below the legend itself, and offset slightly.
Does that explain this to you?
On Tue, May 15, 2018 at 7:07 AM, Slavin, Jonathan <jslavin at cfa.harvard.edu>
> Hi all,
> I'm wondering why using shadow=True causes shading of the legend box when
> framealpha is set to a number. That is, if I do:
> fig,ax = plt.subplots()
> The face color of the legend is gray. There doesn't seem to be any reason
> for this, so I'm assuming it's a bug. I've been looking through the docs
> and haven't found anything relevant - and haven't found any way around it
> other than turning off the shadow. Any help would be appreciated.
> Jonathan D. Slavin Harvard-Smithsonian CfA
> jslavin at cfa.harvard.edu 60 Garden Street, MS 83
> phone: (617) 496-7981 Cambridge, MA 02138-1516
> cell: (781) 363-0035 USA
> Matplotlib-users mailing list
> Matplotlib-users at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Matplotlib-users