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

Skip to content

Commit ecc1f94

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)