()
| 7866 | |
| 7867 | @image_comparison(['axisbelow.png'], remove_text=True, style='_classic_test') |
| 7868 | def test_axisbelow(): |
| 7869 | # Test 'line' setting added in 6287. |
| 7870 | # Show only grids, not frame or ticks, to make this test |
| 7871 | # independent of future change to drawing order of those elements. |
| 7872 | axs = plt.figure().subplots(ncols=3, sharex=True, sharey=True) |
| 7873 | settings = (False, 'line', True) |
| 7874 | |
| 7875 | for ax, setting in zip(axs, settings): |
| 7876 | ax.plot((0, 10), (0, 10), lw=10, color='m') |
| 7877 | circ = mpatches.Circle((3, 3), color='r') |
| 7878 | ax.add_patch(circ) |
| 7879 | ax.grid(color='c', linestyle='-', linewidth=3) |
| 7880 | ax.tick_params(top=False, bottom=False, |
| 7881 | left=False, right=False) |
| 7882 | ax.spines[:].set_visible(False) |
| 7883 | ax.set_axisbelow(setting) |
| 7884 | assert ax.get_axisbelow() == setting |
| 7885 | |
| 7886 | |
| 7887 | def test_titletwiny(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…