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 47c4a23

Browse filesBrowse files
authored
Merge branch 'main' into subfigure-clear
2 parents df85ec0 + 4784ffa commit 47c4a23
Copy full SHA for 47c4a23

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-4
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,14 +1082,14 @@ def get_proj(self):
10821082
if self._focal_length == np.inf:
10831083
# Orthographic projection
10841084
viewM = proj3d.view_transformation(eye, R, V, roll_rad)
1085-
projM = proj3d.ortho_transformation(-self.dist, self.dist)
1085+
projM = proj3d.ortho_transformation(-self._dist, self._dist)
10861086
else:
10871087
# Perspective projection
10881088
# Scale the eye dist to compensate for the focal length zoom effect
1089-
eye_focal = R + self.dist * ps * self._focal_length
1089+
eye_focal = R + self._dist * ps * self._focal_length
10901090
viewM = proj3d.view_transformation(eye_focal, R, V, roll_rad)
1091-
projM = proj3d.persp_transformation(-self.dist,
1092-
self.dist,
1091+
projM = proj3d.persp_transformation(-self._dist,
1092+
self._dist,
10931093
self._focal_length)
10941094

10951095
# Combine all the transformation matrices to get the final projection

0 commit comments

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