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

Method reset_ticks

lib/matplotlib/axis.py:934–952  ·  view source on GitHub ↗

Re-initialize the major and minor Tick lists. Each list starts with a single fresh Tick.

(self)

Source from the content-addressed store, hash-verified

932 self.stale = True
933
934 def reset_ticks(self):
935 """
936 Re-initialize the major and minor Tick lists.
937
938 Each list starts with a single fresh Tick.
939 """
940 # Restore the lazy tick lists.
941 try:
942 del self.majorTicks
943 except AttributeError:
944 pass
945 try:
946 del self.minorTicks
947 except AttributeError:
948 pass
949 try:
950 self.set_clip_path(self.axes.patch)
951 except AttributeError:
952 pass
953
954 def minorticks_on(self):
955 """

Callers 5

clearMethod · 0.95
set_tick_paramsMethod · 0.95
set_positionMethod · 0.80
drawMethod · 0.80
test_reset_ticksFunction · 0.80

Calls 1

set_clip_pathMethod · 0.95

Tested by 1

test_reset_ticksFunction · 0.64