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

Skip to content

Commit 6a8031a

Browse files
committed
add API change documentation
1 parent 3339983 commit 6a8031a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
``NavigationToolbar2.save_figure`` now returns filepath of saved figure
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
``NavigationToolbar2.save_figure`` function return the filename of the saved figure.
5+
If no figure is save then it returns None.
6+
For GTK4 backend and Web backend the still returns None.

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3230,7 +3230,8 @@ def save_figure(self, *args):
32303230
Returns
32313231
-------
32323232
str or `None`
3233-
The filepath of the saved figure. For GTK4 and WebAgg backends it returns `None`.
3233+
The filepath of the saved figure.
3234+
For GTK4 and WebAgg backends it returns `None`.
32343235
Returns `None` if figure is not saved.
32353236
"""
32363237
raise NotImplementedError

0 commit comments

Comments
 (0)