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

Skip to content

Commit c58a062

Browse files
committed
correction on tk backend
1 parent e4ae032 commit c58a062

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/next_api_changes/behavior/27744-FM.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ If a backend implements this functionality it should return `None` in the case w
77
figure is actually saved (because the user closed the dialog without saving).
88

99
If the backend does not or can not implement this functionality (currently the Gtk4 backends
10-
and webagg backends do not) this this method will return `NavigationToolbar2.UNKNOWN_SAVED_STATUS`.
10+
and webagg backends do not) this this method will return ``NavigationToolbar2.UNKNOWN_SAVED_STATUS``.

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def save_figure(self, *args):
867867
)
868868

869869
if fname in ["", ()]:
870-
return self.FILE_NOT_SAVED
870+
return
871871
# Save dir for next time, unless empty str (i.e., use cwd).
872872
if initialdir != "":
873873
mpl.rcParams['savefig.directory'] = (

0 commit comments

Comments
 (0)