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

Function test_axes_tick_params_gridlines

lib/matplotlib/tests/test_axes.py:7812–7821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7810
7811
7812def test_axes_tick_params_gridlines():
7813 # Now treating grid params like other Tick params
7814 ax = plt.subplot()
7815 ax.tick_params(grid_color='b', grid_linewidth=5, grid_alpha=0.5,
7816 grid_linestyle='dashdot')
7817 for axis in ax.xaxis, ax.yaxis:
7818 assert axis.majorTicks[0].gridline.get_color() == 'b'
7819 assert axis.majorTicks[0].gridline.get_linewidth() == 5
7820 assert axis.majorTicks[0].gridline.get_alpha() == 0.5
7821 assert axis.majorTicks[0].gridline.get_linestyle() == '-.'
7822
7823
7824def test_axes_tick_params_ylabelside():

Callers

nothing calls this directly

Calls 5

tick_paramsMethod · 0.45
get_colorMethod · 0.45
get_linewidthMethod · 0.45
get_alphaMethod · 0.45
get_linestyleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…