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

Function example_plot

site-packages/matplotlib/tests/test_constrainedlayout.py:10–19  ·  view source on GitHub ↗
(ax, fontsize=12, nodec=False)

Source from the content-addressed store, hash-verified

8
9
10def example_plot(ax, fontsize=12, nodec=False):
11 ax.plot([1, 2])
12 ax.locator_params(nbins=3)
13 if not nodec:
14 ax.set_xlabel('x-label', fontsize=fontsize)
15 ax.set_ylabel('y-label', fontsize=fontsize)
16 ax.set_title('Title', fontsize=fontsize)
17 else:
18 ax.set_xticklabels('')
19 ax.set_yticklabels('')
20
21
22def example_pcolor(ax, fontsize=12):

Callers 11

test_constrained_layout1Function · 0.70
test_constrained_layout2Function · 0.70
test_constrained_layout6Function · 0.70

Calls 7

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

Tested by

no test coverage detected