Closed
Description
Bug report
Bug summary
If multiple subplots are created using the subplots
function with sharex=True
or sharey=True
, only the outer axes should have tick labels. However, when having logarithmic axes, only this is only true for major tick labels.
The bug also appears when using AxesGrid
instead of subplots
.
Code for reproduction
fig, ax = plt.subplots(2, 2, sharex=True, sharey=True, squeeze=False)
for a in ax.flatten():
a.plot([10, 20, 30], [10, 20, 30])
a.set_yscale("log")
a.set_xscale("log")
Actual outcome
Expected outcome
No x (including minor) tick labels for the upper axes, no y tick labels for the right axes.
Matplotlib version
- Operating System: Linux
- Matplotlib Version: 2.0.2 (anaconda package)
- Python Version: 3.6
Metadata
Metadata
Assignees
Labels
No labels