()
| 317 | |
| 318 | |
| 319 | def 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', [ |
nothing calls this directly
no test coverage detected
searching dependent graphs…