8000 Backport PR #9410: BUG: Fix savefig GUI in GTK backend · matplotlib/matplotlib@c541adb · GitHub
[go: up one dir, main page]

Skip to content

Commit c541adb

Browse files
anntzerMeeseeksDev[bot]
authored andcommitted
Backport PR #9410: BUG: Fix savefig GUI in GTK backend
1 parent 260186a commit c541adb
Copy full SHA for c541adb

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