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

Function test_tick_padding_tightbbox

lib/matplotlib/tests/test_axes.py:8305–8314  ·  view source on GitHub ↗

Test that tick padding gets turned off if axis is off

()

Source from the content-addressed store, hash-verified

8303
8304
8305def 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
8317def test_inset():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
get_tightbboxMethod · 0.45
get_rendererMethod · 0.45
axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…