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

Method set_xticks

lib/matplotlib/axes/_secondary_axes.py:150–155  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

148
149 @functools.wraps(_AxesBase.set_xticks)
150 def set_xticks(self, *args, **kwargs):
151 if self._orientation == "y":
152 raise TypeError("Cannot set xticks on a secondary y-axis")
153 ret = super().set_xticks(*args, **kwargs)
154 self._ticks_set = True
155 return ret
156
157 @functools.wraps(_AxesBase.set_yticks)
158 def set_yticks(self, *args, **kwargs):

Callers 15

test_minor_ticksFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
xticksFunction · 0.80
set_thetagridsMethod · 0.80
plot_hatchFunction · 0.80
test_axis_not_in_layoutFunction · 0.80
test_spines_capstyleFunction · 0.80
test_spines_black_axesFunction · 0.80
test_grayscale_alphaFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_minor_ticksFunction · 0.64
plot_hatchFunction · 0.64
test_axis_not_in_layoutFunction · 0.64
test_spines_capstyleFunction · 0.64
test_spines_black_axesFunction · 0.64
test_grayscale_alphaFunction · 0.64
test_truetype_conversionFunction · 0.64
test_font_heuristicaFunction · 0.64
test_font_dejavusansFunction · 0.64