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

Function test_gettightbbox_ignore_nan

lib/matplotlib/tests/test_axes.py:8490–8495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8488
8489
8490def test_gettightbbox_ignore_nan():
8491 fig, ax = plt.subplots()
8492 remove_ticks_and_titles(fig)
8493 ax.text(np.nan, 1, 'Boo')
8494 renderer = fig.canvas.get_renderer()
8495 np.testing.assert_allclose(ax.get_tightbbox(renderer).width, 496)
8496
8497
8498def test_scatter_series_non_zero_index(pd):

Callers

nothing calls this directly

Calls 5

remove_ticks_and_titlesFunction · 0.90
subplotsMethod · 0.45
textMethod · 0.45
get_rendererMethod · 0.45
get_tightbboxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…