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 a2584af

Browse filesBrowse files
committed
remove unused code
1 parent 21deaf4 commit a2584af
Copy full SHA for a2584af

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-4
lines changed

‎lib/matplotlib/lines.py

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

14191419
def get_transform(self):
14201420
ax = self.axes
1421-
if self._transform is not None:
1422-
points_transform = self._transform + ax.transData.inverted()
1423-
else:
1424-
points_transform = ax.transScale
1421+
points_transform = self._transform + ax.transData.inverted()
14251422

14261423
if self._xy2 is not None:
14271424
# 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.