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

Function test_figsize_partial_none

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

Source from the content-addressed store, hash-verified

1880
1881
1882def test_figsize_partial_none():
1883 default_w, default_h = mpl.rcParams["figure.figsize"]
1884
1885 fig = plt.figure(figsize=(None, 4))
1886 w, h = fig.get_size_inches()
1887 assert (w, h) == (default_w, 4)
1888
1889 fig = plt.figure(figsize=(6, None))
1890 w, h = fig.get_size_inches()
1891 assert (w, h) == (6, default_h)
1892
1893
1894def test_figsize_both_none():

Callers

nothing calls this directly

Calls 2

figureMethod · 0.80
get_size_inchesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…