@@ -161,7 +161,8 @@ def _plot_html(figure_or_data, config,
161
161
return plotly_html_div , plotdivid , width , height
162
162
163
163
164
- def iplot (figure_or_data , config = {'showLink' : True , 'linkText' : 'Export to plot.ly' },
164
+ def iplot (figure_or_data ,
165
+ config = {'showLink' : True , 'linkText' : 'Export to plot.ly' },
165
166
validate = True ):
166
167
"""
167
168
Draw plotly graphs inside an IPython notebook without
@@ -217,7 +218,8 @@ def iplot(figure_or_data, config={'showLink': True, 'linkText': 'Export to plot.
217
218
display (HTML (plot_html ))
218
219
219
220
220
- def plot (figure_or_data , config = {'showLink' :True , 'linkText' :'Export to plot.ly' },
221
+ def plot (figure_or_data ,
222
+ config = {'showLink' : True , 'linkText' : 'Export to plot.ly' },
221
223
validate = True , output_type = 'file' ,
222
224
include_plotlyjs = True ,
223
225
filename = 'temp-plot.html' ,
@@ -338,8 +340,8 @@ def plot(figure_or_data, config = {'showLink':True, 'linkText':'Export to plot.l
338
340
return plot_html
339
341
340
342
341
- def plot_mpl (mpl_fig , resize = False , strip_style = False ,
342
- verbose = False , config = {'showLink' :True , 'linkText' :'Export to plot.ly' },
343
+ def plot_mpl (mpl_fig , resize = False , strip_style = False , verbose = False ,
344
+ config = {'showLink' : True , 'linkText' : 'Export to plot.ly' },
343
345
validate = True , output_type = 'file' , include_plotlyjs = True ,
344
346
filename = 'temp-plot.html' , auto_open = True ):
345
347
"""
@@ -461,9 +463,10 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False, verbose=False,
461
463
return iplot (plotly_plot , config , validate )
462
464
463
465
464
- def enable_mpl_offline (resize = False , strip_style = False ,
465
- verbose = False , config = {'showLink' :True , 'linkText' :'Export to plot.ly' },
466
- validate = True ):
466
+ def enable_mpl_offline (resize = False , strip_style = False , verbose = False ,
467
+ config = {'showLink' : True ,
468
+ 'linkText' : 'Export to plot.ly' },
469
+ validate = True ):
467
470
"""
468
471
Convert mpl plots to locally hosted HTML documents.
469
472
@@ -496,4 +499,4 @@ def enable_mpl_offline(resize=False, strip_style=False,
496
499
formatter = ip .display_formatter .formatters ['text/html' ]
497
500
formatter .for_type (matplotlib .figure .Figure ,
498
501
lambda fig : iplot_mpl (fig , resize , strip_style , verbose ,
499
- config , validate ))
502
+ config , validate ))
0 commit comments