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

Function test_set_fig_size

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

Source from the content-addressed store, hash-verified

435
436
437def test_set_fig_size():
438 fig = plt.figure()
439
440 # check figwidth
441 fig.set_figwidth(5)
442 assert fig.get_figwidth() == 5
443
444 # check figheight
445 fig.set_figheight(1)
446 assert fig.get_figheight() == 1
447
448 # check using set_size_inches
449 fig.set_size_inches(2, 4)
450 assert fig.get_figwidth() == 2
451 assert fig.get_figheight() == 4
452
453 # check using tuple to first argument
454 fig.set_size_inches((1, 3))
455 assert fig.get_figwidth() == 1
456 assert fig.get_figheight() == 3
457
458
459def test_axes_remove():

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
set_figwidthMethod · 0.80
get_figwidthMethod · 0.80
set_figheightMethod · 0.80
get_figheightMethod · 0.80
set_size_inchesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…