A special class that does one thing, the identity transform, in a fast way.
| 2161 | |
| 2162 | |
| 2163 | class 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 | |
| 2213 | class _BlendedMixin: |
searching dependent graphs…