Skip to content

Commit cb5e147

Browse files
committed
the fix
1 parent febe6f4 commit cb5e147

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

plotly/offline/offline.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ def _plot_html(figure_or_data, config, validate, default_width,
227227
plotly_platform_url = plotly.plotly.get_config().get('plotly_domain',
228228
'https://plot.ly')
229229
if (plotly_platform_url != 'https://plot.ly' and
230-
link_text == 'Export to plot.ly'):
230+
config['linkText'] == 'Export to plot.ly'):
231231

232232
link_domain = plotly_platform_url\
233233
.replace('https://', '')\
234234
.replace('http://', '')
235-
link_text = link_text.replace('plot.ly', link_domain)
235+
link_text = config['linkText'].replace('plot.ly', link_domain)
236236
config['linkText'] = link_text
237237

238238
if 'frames' in figure_or_data:
@@ -366,13 +366,10 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
366366
display(HTML(script))
367367

368368

369-
def plot(figure_or_data,
370-
show_link=True, link_text='Export to plot.ly',
371-
validate=True, output_type='file',
372-
include_plotlyjs=True,
373-
filename='temp-plot.html', auto_open=True,
374-
image=None, image_filename='plot_image',
375-
image_width=800, image_height=600):
369+
def plot(figure_or_data, show_link=True, link_text='Export to plot.ly',
370+
validate=True, output_type='file', include_plotlyjs=True,
371+
filename='temp-plot.html', auto_open=True, image=None,
372+
image_filename='plot_image', image_width=800, image_height=600):
376373
""" Create a plotly graph locally as an HTML document or string.
377374
378375
Example:

0 commit comments

Comments
 (0)