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

Function remove_ticks

lib/matplotlib/testing/decorators.py:60–73  ·  view source on GitHub ↗

Remove ticks in *ax* and all its child Axes.

(ax)

Source from the content-addressed store, hash-verified

58 figure.suptitle("")
59 null_formatter = ticker.NullFormatter()
60 def remove_ticks(ax):
61 """Remove ticks in *ax* and all its child Axes."""
62 ax.set_title("")
63 ax.xaxis.set_major_formatter(null_formatter)
64 ax.xaxis.set_minor_formatter(null_formatter)
65 ax.yaxis.set_major_formatter(null_formatter)
66 ax.yaxis.set_minor_formatter(null_formatter)
67 try:
68 ax.zaxis.set_major_formatter(null_formatter)
69 ax.zaxis.set_minor_formatter(null_formatter)
70 except AttributeError:
71 pass
72 for child in ax.child_axes:
73 remove_ticks(child)
74 for ax in figure.get_axes():
75 remove_ticks(ax)
76

Callers 1

remove_ticks_and_titlesFunction · 0.85

Calls 3

set_minor_formatterMethod · 0.80
set_titleMethod · 0.45
set_major_formatterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…