Skip to content

The default logit minor locator should not display tick labels #13698

Closed

Description

@anntzer

Bug report

Code for reproduction

from pylab import *
rcdefaults()
fig, axs = plt.subplots(2)
axs[0].plot([1, 100]); axs[0].set(yscale="log")
axs[1].plot([.01, .99]); axs[1].set(yscale="logit")
plt.show()

Actual outcome

test

Expected outcome

The logit minor tick labels are "a bit" crowded... (examples in the docs that showcase logit all explicitly remove the minor labels using e.g. NullFormatter)

LogitFormatter should likely use a mechanism similar to LogFormatter's sublabels to avoid displaying the minor ticks labels in this case (haven't thought about the details, though).

Matplotlib version

  • Operating system: linux
  • Matplotlib version: 3/master
  • Matplotlib backend (print(matplotlib.get_backend())): any
  • Python version: 3.7
  • Jupyter version (if applicable): no
  • Other libraries: no

Activity

  1. added this to the v3.2.0 milestone on Jul 16, 2019
  2. anntzer commented on Aug 6, 2019

    @anntzer
    ContributorAuthor

    Fixed by #14512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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