@@ -187,7 +187,7 @@ def _plot_html(figure_or_data, show_link, link_text, validate,
187
187
188
188
189
189
def iplot (figure_or_data , show_link = True , link_text = 'Export to plot.ly' ,
190
- validate = True , download_image = False , format = 'png' ,
190
+ validate = True , image = False , format = 'png' ,
191
191
_width = 800 , _height = 600 , filename = 'plot' ):
192
192
"""
193
193
Draw plotly graphs inside an IPython notebook without
@@ -245,7 +245,7 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
245
245
246
246
display (HTML (plot_html ))
247
247
248
- if download_image :
248
+ if image :
249
249
# Write script to download image of the plot
250
250
script = ('<script>'
251
251
'function downloadimage(format, height, width,'
@@ -272,7 +272,7 @@ def plot(figure_or_data,
272
272
validate = True , output_type = 'file' ,
273
273
include_plotlyjs = True ,
274
274
filename = 'temp-plot.html' , auto_open = True ,
275
- download_image = False , image_filename = 'plot' , format = 'png' ,
275
+ image = False , image_filename = 'plot' , format = 'png' ,
276
276
_width = 800 , _height = 600 ):
277
277
""" Create a plotly graph locally as an HTML document or string.
278
278
@@ -365,7 +365,7 @@ def plot(figure_or_data,
365
365
plotly_js_script = ''
366
366
367
367
# write the download script:
368
- if download_image :
368
+ if image :
369
369
script = ('<script>'
370
370
'function downloadimage(format, height, width,'
371
371
' filename) {{'
@@ -418,7 +418,7 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False,
418
418
verbose = False , show_link = True , link_text = 'Export to plot.ly' ,
419
419
validate = True , output_type = 'file' , include_plotlyjs = True ,
420
420
filename = 'temp-plot.html' , auto_open = True ,
421
- download_image = False , image_filename = 'plot' , format = 'png' ,
421
+ image = False , image_filename = 'plot' , format = 'png' ,
422
422
_height = 600 , _width = 800 ):
423
423
"""
424
424
Convert a matplotlib figure to a Plotly graph stored locally as HTML.
@@ -470,7 +470,7 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False,
470
470
image_filename (default='plot') -- Sets the name of the file your image
471
471
will be saved to. The extension should not be included.
472
472
_height (default=600) -- Specifies the height of the image in `px`.
473
- _width (default=800) -- Specifies the width of the image in `px`.
473
+ _width (default=800) -- Specifies the width of the image in `px`.
474
474
475
475
Example:
476
476
```
@@ -490,14 +490,14 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False,
490
490
plotly_plot = tools .mpl_to_plotly (mpl_fig , resize , strip_style , verbose )
491
491
return plot (plotly_plot , show_link , link_text , validate , output_type ,
492
492
include_plotlyjs , filename , auto_open ,
493
- download_image = download_image , image_filename = image_filename ,
493
+ image = image , image_filename = image_filename ,
494
494
format = format , _height = _height , _width = _width )
495
495
496
496
497
497
def iplot_mpl (mpl_fig , resize = False , strip_style = False ,
498
498
verbose = False , show_link = True ,
499
499
link_text = 'Export to plot.ly' , validate = True ,
500
- download_image = False , image_filename = 'plot' , _format = 'png' ,
500
+ image = False , image_filename = 'plot' , _format = 'png' ,
501
501
_height = 600 , _width = 800 ):
502
502
"""
503
503
Convert a matplotlib figure to a plotly graph and plot inside an IPython
@@ -552,7 +552,7 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False,
552
552
"""
553
553
plotly_plot = tools .mpl_to_plotly (mpl_fig , resize , strip_style , verbose )
554
554
return iplot (plotly_plot , show_link , link_text , validate ,
555
- download_image = download_image , filename = image_filename ,
555
+ image = image , filename = image_filename ,
556
556
format = _format , _height = _height , _width = _width )
557
557
558
558
0 commit comments