8000 FIX: Webagg `save_figure` - Raise a Warning Instead of an Error by blink1073 · Pull Request #3967 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: Webagg save_figure - Raise a Warning Instead of an Error #3967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/matplotlib/backends/backend_webagg_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import json
import os
import time
import warnings

import numpy as np

Expand Down Expand Up @@ -318,6 +319,10 @@ def release_zoom(self, event):
self.canvas.send_event(
"rubberband", x0=-1, y0=-1, x1=-1, y1=-1)

def save_figure(self, *args):
"""Save the current figure"""
warnings.warn('"Save figure" not implemented in Web Backend')


class FigureManagerWebAgg(backend_bases.FigureManagerBase):
ToolbarCls = NavigationToolbar2WebAgg
Expand Down
0