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

Function example_plot

galleries/users_explain/axes/tight_layout_guide.py:38–44  ·  view source on GitHub ↗
(ax, fontsize=12)

Source from the content-addressed store, hash-verified

36
37
38def example_plot(ax, fontsize=12):
39 ax.plot([1, 2])
40
41 ax.locator_params(nbins=3)
42 ax.set_xlabel('x-label', fontsize=fontsize)
43 ax.set_ylabel('y-label', fontsize=fontsize)
44 ax.set_title('Title', fontsize=fontsize)
45
46plt.close('all')
47fig, ax = plt.subplots()

Callers 1

Calls 5

locator_paramsMethod · 0.80
set_xlabelMethod · 0.80
set_ylabelMethod · 0.80
plotMethod · 0.45
set_titleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…