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

Function set_axis_style

galleries/examples/statistics/customized_violin.py:29–32  ·  view source on GitHub ↗
(ax, labels)

Source from the content-addressed store, hash-verified

27
28
29def set_axis_style(ax, labels):
30 ax.set_xticks(np.arange(1, len(labels) + 1), labels=labels)
31 ax.set_xlim(0.25, len(labels) + 0.75)
32 ax.set_xlabel('Sample name')
33
34
35# create test data

Callers 1

Calls 3

set_xticksMethod · 0.80
set_xlabelMethod · 0.80
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…