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

Function test_not_visible_figure

lib/matplotlib/tests/test_figure.py:1751–1763  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1749
1750
1751def test_not_visible_figure():
1752 fig = Figure()
1753
1754 buf = io.StringIO()
1755 fig.savefig(buf, format='svg')
1756 buf.seek(0)
1757 assert '<g ' in buf.read()
1758
1759 fig.set_visible(False)
1760 buf = io.StringIO()
1761 fig.savefig(buf, format='svg')
1762 buf.seek(0)
1763 assert '<g ' not in buf.read()
1764
1765
1766def test_warn_colorbar_mismatch():

Callers

nothing calls this directly

Calls 3

savefigMethod · 0.95
FigureClass · 0.90
set_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…