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

Method get_ticks

lib/matplotlib/colorbar.py:916–928  ·  view source on GitHub ↗

Return the ticks as a list of locations. Parameters ---------- minor : boolean, default: False if True return the minor ticks.

(self, minor=False)

Source from the content-addressed store, hash-verified

914 self.stale = True
915
916 def get_ticks(self, minor=False):
917 """
918 Return the ticks as a list of locations.
919
920 Parameters
921 ----------
922 minor : boolean, default: False
923 if True return the minor ticks.
924 """
925 if minor:
926 return self.long_axis.get_minorticklocs()
927 else:
928 return self.long_axis.get_majorticklocs()
929
930 def set_ticklabels(self, ticklabels, *, minor=False, **kwargs):
931 """

Callers 4

test_colorbar_get_ticksFunction · 0.80

Calls 2

get_minorticklocsMethod · 0.80
get_majorticklocsMethod · 0.80

Tested by 4

test_colorbar_get_ticksFunction · 0.64