From 67253c4cd7022d72cf57b5e77be28e612fd3a6e8 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Sat, 29 Dec 2018 06:57:11 -0500 Subject: [PATCH 1/2] Remove call to `fig.strip_style` (was removed in v3) --- plotly/matplotlylib/renderer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plotly/matplotlylib/renderer.py b/plotly/matplotlylib/renderer.py index aca990da93b..3d5897a9ebd 100644 --- a/plotly/matplotlylib/renderer.py +++ b/plotly/matplotlylib/renderer.py @@ -735,5 +735,4 @@ def resize(self): pass def strip_style(self): - self.msg += "Stripping mpl style, deleting keys from data and layout\n" - self.plotly_fig.strip_style() + self.msg += "Stripping mpl style is no longer supported\n" From ea3bda87698e9791addbda81f22b503573600f87 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Sat, 29 Dec 2018 06:57:31 -0500 Subject: [PATCH 2/2] Remove call to `fig.validate` (was removed in v3) --- plotly/plotly/plotly.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plotly/plotly/plotly.py b/plotly/plotly/plotly.py index 88bf1ca9872..a5280c219e2 100644 --- a/plotly/plotly/plotly.py +++ b/plotly/plotly/plotly.py @@ -276,7 +276,6 @@ def iplot_mpl(fig, resize=True, strip_style=False, update=None, fig = tools.mpl_to_plotly(fig, resize=resize, strip_style=strip_style) if update and isinstance(update, dict): fig.update(update) - fig.validate() elif update is not None: raise exceptions.PlotlyGraphObjectError( "'update' must be dictionary-like and a valid plotly Figure "