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

Function test_shared_view

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:1878–1888  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

1876
1877@check_figures_equal()
1878def test_shared_view(fig_test, fig_ref):
1879 elev, azim, roll = 5, 20, 30
1880 ax1 = fig_test.add_subplot(131, projection="3d")
1881 ax2 = fig_test.add_subplot(132, projection="3d", shareview=ax1)
1882 ax3 = fig_test.add_subplot(133, projection="3d")
1883 ax3.shareview(ax1)
1884 ax2.view_init(elev=elev, azim=azim, roll=roll, share=True)
1885
1886 for subplot_num in (131, 132, 133):
1887 ax = fig_ref.add_subplot(subplot_num, projection="3d")
1888 ax.view_init(elev=elev, azim=azim, roll=roll)
1889
1890
1891def test_shared_axes_retick():

Callers

nothing calls this directly

Calls 3

add_subplotMethod · 0.80
shareviewMethod · 0.80
view_initMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…