Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf2fe2d

Browse filesBrowse 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
Copy full SHA for cf2fe2d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
+3Lines changed: 3 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.