()
| 6316 | |
| 6317 | |
| 6318 | def test_reset_grid(): |
| 6319 | fig, ax = plt.subplots() |
| 6320 | ax.tick_params(reset=True, which='major', labelsize=10) |
| 6321 | assert not ax.xaxis.majorTicks[0].gridline.get_visible() |
| 6322 | ax.grid(color='red') # enables grid |
| 6323 | assert ax.xaxis.majorTicks[0].gridline.get_visible() |
| 6324 | |
| 6325 | with plt.rc_context({'axes.grid': True}): |
| 6326 | ax.clear() |
| 6327 | ax.tick_params(reset=True, which='major', labelsize=10) |
| 6328 | assert ax.xaxis.majorTicks[0].gridline.get_visible() |
| 6329 | |
| 6330 | |
| 6331 | @check_figures_equal() |
nothing calls this directly
no test coverage detected
searching dependent graphs…