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

Function minorticksubplot

lib/matplotlib/tests/test_ticker.py:1832–1839  ·  view source on GitHub ↗
(xminor, yminor, i)

Source from the content-addressed store, hash-verified

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)

Callers 1

test_minorticks_rcFunction · 0.85

Calls 2

add_subplotMethod · 0.80
get_minor_ticksMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…