Skip to content

Commit e6512b2

Browse files
committed
FIX updated ticker tests
1 parent 9b98582 commit e6512b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/tests/test_ticker.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ def test_LogFormatter_sublabel():
240240
ax.xaxis.set_major_locator(mticker.LogLocator(base=10, subs=[]))
241241
ax.xaxis.set_minor_locator(mticker.LogLocator(base=10,
242242
subs=np.arange(2, 10)))
243-
ax.xaxis.set_major_formatter(mticker.LogFormatter())
244-
ax.xaxis.set_minor_formatter(mticker.LogFormatter(labelOnlyBase=False))
243+
ax.xaxis.set_major_formatter(mticker.LogFormatter(labelOnlyBase=True))
244+
ax.xaxis.set_minor_formatter(mticker.LogFormatter(
245+
labelOnlyBase=False,
246+
sublabel_filtering=True))
245247
# axis range above 3 decades, only bases are labeled
246248
ax.set_xlim(1, 1e4)
247249
fmt = ax.xaxis.get_major_formatter()

0 commit comments

Comments
 (0)