Create a new Affine2D instance from the given values:: a c e b d f 0 0 1 .
(a, b, c, d, e, f)
| 1971 | |
| 1972 | @staticmethod |
| 1973 | def from_values(a, b, c, d, e, f): |
| 1974 | """ |
| 1975 | Create a new Affine2D instance from the given values:: |
| 1976 | |
| 1977 | a c e |
| 1978 | b d f |
| 1979 | 0 0 1 |
| 1980 | |
| 1981 | . |
| 1982 | """ |
| 1983 | return Affine2D( |
| 1984 | np.array([a, c, e, b, d, f, 0.0, 0.0, 1.0], float).reshape((3, 3))) |
| 1985 | |
| 1986 | def get_matrix(self): |
| 1987 | """ |