-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Matplotlib version 1.5.1 (OS X.11.4 and Ubuntu 16.04) installed via pip
When you manually set the color for the axis ticks via
ax.tick_params(labelcolor='w')
Then if the scale of the plot changes to the point where mpl decided to write the scale in scientific notation above the axis, the color of the scientific notation text does not obey the user defined color
There may be a reason for this but I don't see why it wouldn't follow the user-defined labelcolor for the axis ticks.
I'm not sure of providing a minimum working example. I would guess just creating an mpl figure without setting specific axes limits, manually setting the tick colors to a specific color, then plotting data that is some many orders of magnitude higher than the current axes scale should reproduce the error/bug/feature. The scientific notation text for the axis scale will appear in default black even if you have set the axis tick_params labelcolor to white.
An example is shown in the attached picture: The y-axis of the plot has a large enough scale to warrant using scientific notation. However the scientific notation label appears in black when the rest of the plot has the labelcolor set to white.
