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

Function test_subfigure_dpi

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

Source from the content-addressed store, hash-verified

1386
1387
1388def test_subfigure_dpi():
1389 fig = plt.figure(dpi=100)
1390 sub_fig = fig.subfigures()
1391 assert sub_fig.get_dpi() == fig.get_dpi()
1392
1393 sub_fig.set_dpi(200)
1394 assert sub_fig.get_dpi() == 200
1395 assert fig.get_dpi() == 200
1396
1397
1398@image_comparison(['test_subfigure_ss.png'], style='mpl20',

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
subfiguresMethod · 0.80
get_dpiMethod · 0.45
set_dpiMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…