-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Bug report
Bug summary
axis.tick_params(axis='y', colors='b') fails to color all labels in scientific notation. It fails on numbers that are not a full decade (e.g. 2 x 10^1).
Code for reproduction
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.plot([1,5,10],[1,5,10])
ax.set_xscale('log')
ax.set_yscale('log')
ax.set_xlim([1e0,1e1])
ax.set_ylim([1e0,1e1])
ax.yaxis.label.set_color('b')
ax.spines['left'].set_edgecolor('b')
ax.tick_params(axis='y', colors='b')
plt.savefig('test.png')
plt.show()Actual outcome
Expected outcome
All tick labels should be colored
Matplotlib version
- Operating system: macOS X 10.13.6
- Matplotlib version: 2.2.2
- Matplotlib backend (
print(matplotlib.get_backend())): MacOSX - Python version: 3.7.0
- Jupyter version (if applicable): -
- Other libraries: -
Installed using:
brew install python3
pip3 install matplotlibMetadata
Metadata
Assignees
Labels
No labels
