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

Class IdentityTransform

lib/matplotlib/transforms.py:2163–2210  ·  view source on GitHub ↗

A special class that does one thing, the identity transform, in a fast way.

Source from the content-addressed store, hash-verified

2161
2162
2163class IdentityTransform(Affine2DBase):
2164 """
2165 A special class that does one thing, the identity transform, in a
2166 fast way.
2167 """
2168 _mtx = np.identity(3)
2169
2170 def frozen(self):
2171 # docstring inherited
2172 return self
2173
2174 __str__ = _make_str_method()
2175
2176 def get_matrix(self):
2177 # docstring inherited
2178 return self._mtx
2179
2180 def transform(self, values):
2181 # docstring inherited
2182 return np.asanyarray(values)
2183
2184 def transform_affine(self, values):
2185 # docstring inherited
2186 return np.asanyarray(values)
2187
2188 def transform_non_affine(self, values):
2189 # docstring inherited
2190 return np.asanyarray(values)
2191
2192 def transform_path(self, path):
2193 # docstring inherited
2194 return path
2195
2196 def transform_path_affine(self, path):
2197 # docstring inherited
2198 return path
2199
2200 def transform_path_non_affine(self, path):
2201 # docstring inherited
2202 return path
2203
2204 def get_affine(self):
2205 # docstring inherited
2206 return self
2207
2208 def inverted(self):
2209 # docstring inherited
2210 return self
2211
2212
2213class _BlendedMixin:

Callers 15

get_tick_transformMethod · 0.90
__init__Method · 0.90
_init_offsetTextMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
_make_imageMethod · 0.90
make_imageMethod · 0.90
make_imageMethod · 0.90
get_transformMethod · 0.90
plot_pathsFunction · 0.90
test_chunksize_failsFunction · 0.90

Calls 1

_make_str_methodFunction · 0.85

Tested by 3

plot_pathsFunction · 0.72
test_chunksize_failsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…