Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tick labels shown on all axes with log scale and share{x,y}=True #8903

Closed
lschr opened this issue Jul 17, 2017 · 0 comments
Closed

Minor tick labels shown on all axes with log scale and share{x,y}=True #8903

lschr opened this issue Jul 17, 2017 · 0 comments
Milestone

Comments

@lschr
Copy link
Contributor

lschr commented Jul 17, 2017

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

log_shared_axes

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
@tacaswell tacaswell modified the milestones: 2.1.1 (next bug fix release), 2.1 (next point release) Aug 6, 2017
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 6, 2017
Use `set_tick_params` to hide tick labels in not-edge plots instead
of setting the visibility on the tick label objects.

This catches both major and minor tick-labels and is more robust to
changes in the ticklabel generation.

closes matplotlib#8903
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 6, 2017
Use `set_tick_params` to hide tick labels in not-edge plots instead
of setting the visibility on the tick label objects.

This catches both major and minor tick-labels and is more robust to
changes in the ticklabel generation.

closes matplotlib#8903
QuLogic pushed a commit to QuLogic/matplotlib that referenced this issue Aug 8, 2017
Use `set_tick_params` to hide tick labels in not-edge plots instead
of setting the visibility on the tick label objects.

This catches both major and minor tick-labels and is more robust to
changes in the ticklabel generation.

closes matplotlib#8903
@QuLogic QuLogic modified the milestones: 2.1 (next point release), 2.1.1 (next bug fix release) Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants