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

Function test_axis_positions

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64@mpl3d_image_comparison(['axis_positions.png'], remove_text=False, style='mpl20')
65def test_axis_positions():
66 positions = ['upper', 'lower', 'both', 'none']
67 fig, axs = plt.subplots(2, 2, subplot_kw={'projection': '3d'})
68 for ax, pos in zip(axs.flatten(), positions):
69 for axis in ax.xaxis, ax.yaxis, ax.zaxis:
70 axis.set_label_position(pos)
71 axis.set_ticks_position(pos)
72 title = f'{pos}'
73 ax.set(xlabel='x', ylabel='y', zlabel='z', title=title)
74
75
76@mpl3d_image_comparison(['aspects.png'], remove_text=False, style='mpl20')

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
set_label_positionMethod · 0.45
set_ticks_positionMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…