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 6245d4e

Browse filesBrowse files
committed
Merge pull request #5555 from anntzer/formlayout-short-float-repr
ENH: Use shorter float repr in figure options dialog.
2 parents b498783 + f53ee4d commit 6245d4e
Copy full SHA for 6245d4e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/backends/qt_editor/figureoptions.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/qt_editor/figureoptions.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def figure_edit(axes, parent=None):
4646
has_curve = len(axes.get_lines()) > 0
4747

4848
# Get / General
49-
xmin, xmax = axes.get_xlim()
50-
ymin, ymax = axes.get_ylim()
49+
xmin, xmax = map(float, axes.get_xlim())
50+
ymin, ymax = map(float, axes.get_ylim())
5151
general = [('Title', axes.get_title()),
5252
sep,
5353
(None, "<b>X-Axis</b>"),

0 commit comments

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