Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb96c2a

Browse 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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_gtk.py

Lines 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)