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 e69c490

Browse filesBrowse files
authored
Merge pull request #19488 from anntzer/inverted
MNT: Prefer `tr1-tr2` to `tr1+tr2.inverted()`.
2 parents e24244c + 9ae6f0e commit e69c490
Copy full SHA for e69c490

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,7 @@ def __init__(self, xy1, xy2, slope, **kwargs):
14321432

14331433
def get_transform(self):
14341434
ax = self.axes
1435-
points_transform = (self._transform + ax.transData.inverted() +
1436-
ax.transScale)
1435+
points_transform = self._transform - ax.transData + ax.transScale
14371436

14381437
if self._xy2 is not None:
14391438
# two points were given

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.