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

Function test_Subplot

lib/mpl_toolkits/axisartist/tests/test_axislines.py:29–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28@image_comparison(['Subplot.png'], style='mpl20')
29def test_Subplot():
30 fig = plt.figure()
31
32 ax = Subplot(fig, 1, 1, 1)
33 fig.add_subplot(ax)
34
35 xx = np.arange(0, 2 * np.pi, 0.01)
36 ax.plot(xx, np.sin(xx))
37 ax.set_ylabel("Test")
38
39 ax.axis["left"].major_ticks.set_tick_out(False)
40 ax.axis["right"].major_ticks.set_tick_out(False)
41
42 ax.axis["bottom"].set_label("Tk0")
43
44
45def test_Axes():

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
add_subplotMethod · 0.80
set_ylabelMethod · 0.80
set_tick_outMethod · 0.80
plotMethod · 0.45
set_labelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…