Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9bb208 + 8150727 commit cce3ef4Copy full SHA for cce3ef4
examples/pyplots/pyplot_scales.py
examples/scales/scales.py
@@ -8,6 +8,7 @@
8
The last two examples are examples of using the ``'function'`` scale by
9
supplying forward and inverse functions for the scale transformation.
10
"""
11
+
12
import numpy as np
13
import matplotlib.pyplot as plt
14
from matplotlib.ticker import NullFormatter, FixedLocator
@@ -54,6 +55,8 @@
54
55
ax.set_yscale('logit')
56
ax.set_title('logit')
57
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())
61
62
0 commit comments