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 77fa285

Browse filesBrowse files
meeseeksmachinetimhoffm
authored andcommitted
Backport PR #12573: BUG: mplot3d: Don't crash if azim or elev are non-integral (#12575)
1 parent 90723b4 commit 77fa285
Copy full SHA for 77fa285

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,8 @@ def format_coord(self, xd, yd):
11681168
return ''
11691169

11701170
if self.button_pressed in self._rotate_btn:
1171-
return 'azimuth=%d deg, elevation=%d deg ' % (self.azim, self.elev)
1171+
return 'azimuth={:.0f} deg, elevation={:.0f} deg '.format(
1172+
self.azim, self.elev)
11721173
# ignore xd and yd and display angles instead
11731174

11741175
# nearest edge

0 commit comments

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