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

Function test_polar_gridlines

lib/matplotlib/tests/test_polar.py:319–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318
319def test_polar_gridlines():
320 fig = plt.figure()
321 ax = fig.add_subplot(polar=True)
322 # make all major grid lines lighter, only x grid lines set in 2.1.0
323 ax.grid(alpha=0.2)
324 # hide y tick labels, no effect in 2.1.0
325 plt.setp(ax.yaxis.get_ticklabels(), visible=False)
326 fig.canvas.draw()
327 assert ax.xaxis.majorTicks[0].gridline.get_alpha() == .2
328 assert ax.yaxis.majorTicks[0].gridline.get_alpha() == .2
329
330
331@pytest.mark.parametrize('theta_zero_location, theta_offset', [

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
add_subplotMethod · 0.80
get_ticklabelsMethod · 0.80
gridMethod · 0.45
drawMethod · 0.45
get_alphaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…