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

Method get_matrix

lib/matplotlib/transforms.py:1986–1999  ·  view source on GitHub ↗

Get the underlying transformation matrix as a 3x3 array:: a c e b d f 0 0 1 .

(self)

Source from the content-addressed store, hash-verified

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 """
1988 Get the underlying transformation matrix as a 3x3 array::
1989
1990 a c e
1991 b d f
1992 0 0 1
1993
1994 .
1995 """
1996 if self._invalid:
1997 self._inverted = None
1998 self._invalid = 0
1999 return self._mtx
2000
2001 def set_matrix(self, mtx):
2002 """

Callers 15

test_modify_inplaceMethod · 0.95
test_clearMethod · 0.95
test_copyMethod · 0.95
test_deepcopyMethod · 0.95
__array__Method · 0.45
get_matrixMethod · 0.45
__array__Method · 0.45
__eq__Method · 0.45
frozenMethod · 0.45
is_separableMethod · 0.45
to_valuesMethod · 0.45
transform_affineMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_modify_inplaceMethod · 0.76
test_clearMethod · 0.76
test_copyMethod · 0.76
test_deepcopyMethod · 0.76