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

Function setup_axes

galleries/examples/axisartist/axis_direction.py:12–23  ·  view source on GitHub ↗
(fig, pos)

Source from the content-addressed store, hash-verified

10
11
12def setup_axes(fig, pos):
13 ax = fig.add_subplot(pos, axes_class=axisartist.Axes)
14
15 ax.set_ylim(-0.1, 1.5)
16 ax.set_yticks([0, 1])
17
18 ax.axis[:].set_visible(False)
19
20 ax.axis["x"] = ax.new_floating_axis(1, 0.5)
21 ax.axis["x"].set_axisline_style("->", size=1.5)
22
23 return ax
24
25
26plt.rcParams.update({

Callers 1

axis_direction.pyFile · 0.70

Calls 6

add_subplotMethod · 0.80
set_yticksMethod · 0.80
set_axisline_styleMethod · 0.80
set_ylimMethod · 0.45
set_visibleMethod · 0.45
new_floating_axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…