Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@lschr

Description

@lschr
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.