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 bb96c2a

Browse filesBrowse files
authored
Merge pull request #9411 from matplotlib/auto-backport-of-pr-9410
Backport PR #9410 on branch v2.1.x
2 parents 50f1f1f + c541adb commit bb96c2a
Copy full SHA for bb96c2a

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.