MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_minorticks_rc

Function test_minorticks_rc

lib/matplotlib/tests/test_ticker.py:1829–1844  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1827
1828
1829def test_minorticks_rc():
1830 fig = plt.figure()
1831
1832 def minorticksubplot(xminor, yminor, i):
1833 rc = {'xtick.minor.visible': xminor,
1834 'ytick.minor.visible': yminor}
1835 with plt.rc_context(rc=rc):
1836 ax = fig.add_subplot(2, 2, i)
1837
1838 assert (len(ax.xaxis.get_minor_ticks()) > 0) == xminor
1839 assert (len(ax.yaxis.get_minor_ticks()) > 0) == yminor
1840
1841 minorticksubplot(False, False, 1)
1842 minorticksubplot(True, False, 2)
1843 minorticksubplot(False, True, 3)
1844 minorticksubplot(True, True, 4)
1845
1846
1847def test_minorticks_toggle():

Callers

nothing calls this directly

Calls 2

minorticksubplotFunction · 0.85
figureMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…