Skip to content

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

Closed
@anntzer

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

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