Skip to content

Commit bd50b4a

Browse files
authored
Remove calls to non-existent figure methods in MPL code (#1382)
* Remove call to `fig.strip_style` (was removed in v3) * Remove call to `fig.validate` (was removed in v3)
1 parent 7151847 commit bd50b4a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: plotly/matplotlylib/renderer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,4 @@ def resize(self):
735735
pass
736736

737737
def strip_style(self):
738-
self.msg += "Stripping mpl style, deleting keys from data and layout\n"
739-
self.plotly_fig.strip_style()
738+
self.msg += "Stripping mpl style is no longer supported\n"

Diff for: plotly/plotly/plotly.py

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ def iplot_mpl(fig, resize=True, strip_style=False, update=None,
276276
fig = tools.mpl_to_plotly(fig, resize=resize, strip_style=strip_style)
277277
if update and isinstance(update, dict):
278278
fig.update(update)
279-
fig.validate()
280279
elif update is not None:
281280
raise exceptions.PlotlyGraphObjectError(
282281
"'update' must be dictionary-like and a valid plotly Figure "

0 commit comments

Comments
 (0)