8000 Merge pull request #27716 from ahaldane/master · matplotlib/matplotlib@2d2b113 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d2b113

Browse files
authored
Merge pull request #27716 from ahaldane/master
fix default image format in gtk4 savefig dialog
2 parents daa98a1 + 75d260a commit 2d2b113<
D508
/span>

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_gtk4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def save_figure(self, *args):
361361
formats = [formats[default_format], *formats[:default_format],
362362
*formats[default_format+1:]]
363363
dialog.add_choice('format', 'File format', formats, formats)
364-
dialog.set_choice('format', formats[default_format])
364+
dialog.set_choice('format', formats[0])
365365

366366
dialog.set_current_folder(Gio.File.new_for_path(
367367
os.path.expanduser(mpl.rcParams['savefig.directory'])))

0 commit comments

Comments
 (0)
0