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

Function example_plot

lib/matplotlib/tests/test_tightlayout.py:19–24  ·  view source on GitHub ↗
(ax, fontsize=12)

Source from the content-addressed store, hash-verified

17
18
19def example_plot(ax, fontsize=12):
20 ax.plot([1, 2])
21 ax.locator_params(nbins=3)
22 ax.set_xlabel('x-label', fontsize=fontsize)
23 ax.set_ylabel('y-label', fontsize=fontsize)
24 ax.set_title('Title', fontsize=fontsize)
25
26
27@image_comparison(['tight_layout1'], style='mpl20')

Callers 6

test_tight_layout1Function · 0.70
test_tight_layout2Function · 0.70
test_tight_layout3Function · 0.70
test_tight_layout4Function · 0.70
test_tight_layout6Function · 0.70
test_tight_layout8Function · 0.70

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…