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 ecc1f94

Browse filesBrowse files
committed
BUG: Fix savefig through GUI in GTK backend
Fixes #9407
1 parent 4033abd commit ecc1f94
Copy full SHA for ecc1f94

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-0
lines changed

‎lib/matplotlib/backends/backend_gtk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ def save_figure(self, *args):
711711
fname, format = chooser.get_filename_from_user()
712712
chooser.destroy()
713713
if fname:
714+
startpath = os.path.expanduser(rcParams['savefig.directory'])
714715
# Save dir for next time, unless empty str (i.e., use cwd).
715716
if startpath != "":
716717
rcParams['savefig.directory'] = (

0 commit comments

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