()
| 1827 | |
| 1828 | |
| 1829 | def 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 | |
| 1847 | def test_minorticks_toggle(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…