You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make _get_rgba_face actually always return a RGBA.
_get_rgba_face is an internal function that is only use to set the
graphicscontext's foreground color (in Line2D.draw); it is always
effectively called as `gc.set_foreground(line._get_rgba_face(...),
isRGBA=True)`. So it makes sense to have it actually always return a
RGBA quadruplet, including when the color is "none" (in which case
`mcolors.to_rgba` returns (0, 0, 0, 0) regardless of alpha, which works
just fine).
This removes the need for third party graphicscontexts to handle
non-RGBA-quadruplets (specifically, None) even when set_foreground is
actually called with isRGBA=True.
0 commit comments