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

Method set_transform

lib/mpl_toolkits/axisartist/grid_finder.py:235–242  ·  view source on GitHub ↗
(self, aux_trans)

Source from the content-addressed store, hash-verified

233 return lon_lines, lat_lines
234
235 def set_transform(self, aux_trans):
236 if isinstance(aux_trans, Transform):
237 self._aux_transform = aux_trans
238 elif len(aux_trans) == 2 and all(map(callable, aux_trans)):
239 self._aux_transform = _User2DTransform(*aux_trans)
240 else:
241 raise TypeError("'aux_trans' must be either a Transform "
242 "instance or a pair of callables")
243
244 def get_transform(self):
245 return self._aux_transform

Callers 7

__init__Method · 0.95
get_major_ticksMethod · 0.45
get_minor_ticksMethod · 0.45
clearMethod · 0.45
drawMethod · 0.45
get_window_extentMethod · 0.45
_init_offsetTextMethod · 0.45

Calls 1

_User2DTransformClass · 0.85

Tested by

no test coverage detected