Skip to content

Commit cf2fe2d

Browse files
jklymakanntzer
authored andcommitted
Suggest make __add__ more explicit.
... the order of operations is really not clear from the existing doc string.
1 parent ad525ab commit cf2fe2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/transforms.py

+3
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,9 @@ def __init_subclass__(cls):
12661266
def __add__(self, other):
12671267
"""
12681268
Compose two transforms together so that *self* is followed by *other*.
1269+
1270+
``A + B`` returns a transform ``C`` so that
1271+
``C.transform(x) == B.transform(A.transform(x))``.
12691272
"""
12701273
return (composite_transform_factory(self, other)
12711274
if isinstance(other, Transform) else

0 commit comments

Comments
 (0)