8000 Update lib/matplotlib/backend_bases.py · matplotlib/matplotlib@c8bf027 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8bf027

Browse files
Zybulontacaswell
andcommitted
Update lib/matplotlib/backend_bases.py
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
1 parent 380ff99 commit c8bf027

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,13 +3276,18 @@ def on_tool_fig_close(e):
32763276
def save_figure(self, *args):
32773277
"""
32783278
Save the current figure.
3279+
3280+
Backend implementations may choose to return
3281+
the absolute path of the saved file, if any, as
3282+
a string.
3283+
3284+
If no file is created or the backend does not implement
3285+
this functionality then `None` is returned.
32793286
32803287
Returns
32813288
-------
32823289
str or `None`
32833290
The filepath of the saved figure.
3284-
For GTK4 and WebAgg backends it returns `None`.
3285-
Returns `None` if figure is not saved.
32863291
"""
32873292
raise NotImplementedError
32883293

0 commit comments

Comments
 (0)
0