We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b98582 commit e6512b2Copy full SHA for e6512b2
lib/matplotlib/tests/test_ticker.py
@@ -240,8 +240,10 @@ def test_LogFormatter_sublabel():
240
ax.xaxis.set_major_locator(mticker.LogLocator(base=10, subs=[]))
241
ax.xaxis.set_minor_locator(mticker.LogLocator(base=10,
242
subs=np.arange(2, 10)))
243
- ax.xaxis.set_major_formatter(mticker.LogFormatter())
244
- ax.xaxis.set_minor_formatter(mticker.LogFormatter(labelOnlyBase=False))
+ ax.xaxis.set_major_formatter(mticker.LogFormatter(labelOnlyBase=True))
+ ax.xaxis.set_minor_formatter(mticker.LogFormatter(
245
+ labelOnlyBase=False,
246
+ sublabel_filtering=True))
247
# axis range above 3 decades, only bases are labeled
248
ax.set_xlim(1, 1e4)
249
fmt = ax.xaxis.get_major_formatter()
0 commit comments