MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / example_plot

Function example_plot

site-packages/matplotlib/tests/test_tightlayout.py:11–16  ·  view source on GitHub ↗
(ax, fontsize=12)

Source from the content-addressed store, hash-verified

9
10
11def example_plot(ax, fontsize=12):
12 ax.plot([1, 2])
13 ax.locator_params(nbins=3)
14 ax.set_xlabel('x-label', fontsize=fontsize)
15 ax.set_ylabel('y-label', fontsize=fontsize)
16 ax.set_title('Title', fontsize=fontsize)
17
18
19@image_comparison(baseline_images=['tight_layout1'])

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

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

Tested by

no test coverage detected