Skip to content

Commit c1360bb

Browse files
committed
logitscale: remove hack in doc to workround the formatter, it is not necessary anymore
1 parent 851fa4a commit c1360bb

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

examples/scales/scales.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
ax.set_yscale('logit')
5656
ax.set_title('logit')
5757
ax.grid(True)
58-
# Format the minor tick labels of the y-axis into empty strings with
59-
# `NullFormatter`, to avoid cumbering the axis with too many labels.
60-
ax.yaxis.set_minor_formatter(NullFormatter())
6158

6259

6360
# Function x**(1/2)

tutorials/introductory/pyplot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,6 @@ def f(t):
463463
plt.yscale('logit')
464464
plt.title('logit')
465465
plt.grid(True)
466-
# Format the minor tick labels of the y-axis into empty strings with
467-
# `NullFormatter`, to avoid cumbering the axis with too many labels.
468-
plt.gca().yaxis.set_minor_formatter(NullFormatter())
469466
# Adjust the subplot layout, because the logit one may take more space
470467
# than usual, due to y-tick labels like "1 - 10^{-3}"
471468
plt.subplots_adjust(top=0.92, bottom=0.08, left=0.10, right=0.95, hspace=0.25,

0 commit comments

Comments
 (0)