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

Function test_shared_with_aspect_1

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

Source from the content-addressed store, hash-verified

6407
6408
6409def test_shared_with_aspect_1():
6410 # allow sharing one axis
6411 for adjustable in ['box', 'datalim']:
6412 fig, axs = plt.subplots(nrows=2, sharex=True)
6413 axs[0].set_aspect(2, adjustable=adjustable, share=True)
6414 assert axs[1].get_aspect() == 2
6415 assert axs[1].get_adjustable() == adjustable
6416
6417 fig, axs = plt.subplots(nrows=2, sharex=True)
6418 axs[0].set_aspect(2, adjustable=adjustable)
6419 assert axs[1].get_aspect() == 'auto'
6420
6421
6422def test_shared_with_aspect_2():

Callers

nothing calls this directly

Calls 4

get_adjustableMethod · 0.80
subplotsMethod · 0.45
set_aspectMethod · 0.45
get_aspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…