Skip to content

Commit 752d2a2

Browse files
kmaderjonmmease
authored andcommitted
Fixing docstring for manually converting from mpl to plotly (#1148)
updating documentation for the manual process of converting from matplotlib to plotly
1 parent 4556ef9 commit 752d2a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plotly/tools.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,12 @@ def mpl_to_plotly(fig, resize=False, strip_style=False, verbose=False):
431431
this step manually by NOT running this fuction and entereing the following:
432432
433433
===========================================================================
434-
from mplexporter import Exporter
435-
from mplexporter.renderers import PlotlyRenderer
434+
from plotly.matplotlylib import mplexporter, PlotlyRenderer
436435
437436
# create an mpl figure and store it under a varialble 'fig'
438437
439438
renderer = PlotlyRenderer()
440-
exporter = Exporter(renderer)
439+
exporter = mplexporter.Exporter(renderer)
441440
exporter.run(fig)
442441
===========================================================================
443442

0 commit comments

Comments
 (0)