From 28c3257e14eaa22a7cedf947728f122f5b66b55d Mon Sep 17 00:00:00 2001 From: Kevin Mader Date: Sat, 1 Sep 2018 10:20:58 +0200 Subject: [PATCH] Fixing docstring for manually converting from mpl to plotly updating documentation for the manual process of converting from matplotlib to plotly --- plotly/tools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plotly/tools.py b/plotly/tools.py index 8e10c91f32a..80ec787eaba 100644 --- a/plotly/tools.py +++ b/plotly/tools.py @@ -431,13 +431,12 @@ def mpl_to_plotly(fig, resize=False, strip_style=False, verbose=False): this step manually by NOT running this fuction and entereing the following: =========================================================================== - from mplexporter import Exporter - from mplexporter.renderers import PlotlyRenderer + from plotly.matplotlylib import mplexporter, PlotlyRenderer # create an mpl figure and store it under a varialble 'fig' renderer = PlotlyRenderer() - exporter = Exporter(renderer) + exporter = mplexporter.Exporter(renderer) exporter.run(fig) ===========================================================================