Test that tick padding gets turned off if axis is off
()
| 8303 | |
| 8304 | |
| 8305 | def test_tick_padding_tightbbox(): |
| 8306 | """Test that tick padding gets turned off if axis is off""" |
| 8307 | plt.rcParams["xtick.direction"] = "out" |
| 8308 | plt.rcParams["ytick.direction"] = "out" |
| 8309 | fig, ax = plt.subplots() |
| 8310 | bb = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 8311 | ax.axis('off') |
| 8312 | bb2 = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 8313 | assert bb.x0 < bb2.x0 |
| 8314 | assert bb.y0 < bb2.y0 |
| 8315 | |
| 8316 | |
| 8317 | def test_inset(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…