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
hlines and vlines color does not default to lines.color in rcParams. The default argument is 'k' which doesn't work with dark backgrounds.
Code for reproduction
importmatplotlib.pyplotaspltimportmatplotlibasmplplt.style.use('dark_background')
plt.figure()
withmpl.rc_context({'lines.color':'white'}):
plt.hlines(0.5, 0, 1) # defaults to a black line, which doesn't work with a dark backgroundplt.vlines(0.5, 0, 1, colors=None) # This will fall back to `lines.color`