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 69b8b0b

Browse filesBrowse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #27716: fix default image format in gtk4 savefig dialog
1 parent 88a84eb commit 69b8b0b
Copy full SHA for 69b8b0b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_gtk4.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk4.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.