@@ -227,12 +227,12 @@ def _plot_html(figure_or_data, config, validate, default_width,
227
227
plotly_platform_url = plotly .plotly .get_config ().get ('plotly_domain' ,
228
228
'https://plot.ly' )
229
229
if (plotly_platform_url != 'https://plot.ly' and
230
- link_text == 'Export to plot.ly' ):
230
+ config [ 'linkText' ] == 'Export to plot.ly' ):
231
231
232
232
link_domain = plotly_platform_url \
233
233
.replace ('https://' , '' )\
234
234
.replace ('http://' , '' )
235
- link_text = link_text .replace ('plot.ly' , link_domain )
235
+ link_text = config [ 'linkText' ] .replace ('plot.ly' , link_domain )
236
236
config ['linkText' ] = link_text
237
237
238
238
if 'frames' in figure_or_data :
@@ -366,13 +366,10 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
366
366
display (HTML (script ))
367
367
368
368
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 ):
376
373
""" Create a plotly graph locally as an HTML document or string.
377
374
378
375
Example:
0 commit comments