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

Method get_transform

lib/matplotlib/contour.py:823–830  ·  view source on GitHub ↗

Return the `.Transform` instance used by this ContourSet.

(self)

Source from the content-addressed store, hash-verified

821 linestyles = property(lambda self: self._orig_linestyles)
822
823 def get_transform(self):
824 """Return the `.Transform` instance used by this ContourSet."""
825 if self._transform is None:
826 self._transform = self.axes.transData
827 elif (not isinstance(self._transform, mtransforms.Transform)
828 and hasattr(self._transform, '_as_mpl_transform')):
829 self._transform = self._transform._as_mpl_transform(self.axes)
830 return self._transform
831
832 def __getstate__(self):
833 state = self.__dict__.copy()

Callers 4

_find_nearest_contourMethod · 0.95
labelsMethod · 0.45
_process_argsMethod · 0.45

Calls 1

_as_mpl_transformMethod · 0.45

Tested by

no test coverage detected