8000 Merge pull request #3967 from blink1073/webagg-save-figure-warn · matplotlib/matplotlib@87d79a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87d79a1

Browse files
committed
Merge pull request #3967 from blink1073/webagg-save-figure-warn
ENH : Webagg `save_figure` - Raise a Warning Instead of an Error
1 parent 0ed216f commit 87d79a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import json
2020
import os
2121
import time
22+
import warnings
2223

2324
import numpy as np
2425

@@ -319,6 +320,10 @@ def release_zoom(self, event):
319320
self.canvas.send_event(
320321
"rubberband", x0=-1, y0=-1, x1=-1, y1=-1)
321322

323+
def save_figure(self, *args):
324+
"""Save the current figure"""
325+
warnings.warn('"Save figure" not implemented in Web Backend')
326+
322327

323328
class FigureManagerWebAgg(backend_bases.FigureManagerBase):
324329
ToolbarCls = NavigationToolbar2WebAgg

0 commit comments

Comments
 (0)
0