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

Function example_plot

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

Source from the content-addressed store, hash-verified

17
18
19def example_plot(ax, fontsize=12, nodec=False):
20 ax.plot([1, 2])
21 ax.locator_params(nbins=3)
22 if not nodec:
23 ax.set_xlabel('x-label', fontsize=fontsize)
24 ax.set_ylabel('y-label', fontsize=fontsize)
25 ax.set_title('Title', fontsize=fontsize)
26 else:
27 ax.set_xticklabels([])
28 ax.set_yticklabels([])
29
30
31def example_pcolor(ax, fontsize=12):

Callers 11

test_constrained_layout1Function · 0.70
test_constrained_layout2Function · 0.70
test_constrained_layout6Function · 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…