Skip to content

Commit 2f8cbc8

Browse files
author
yankev
committed
pep8 updates
1 parent 687e233 commit 2f8cbc8

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

plotly/offline/offline.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def _plot_html(figure_or_data, config,
161161
return plotly_html_div, plotdivid, width, height
162162

163163

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'},
165166
validate=True):
166167
"""
167168
Draw plotly graphs inside an IPython notebook without
@@ -217,7 +218,8 @@ def iplot(figure_or_data, config={'showLink': True, 'linkText': 'Export to plot.
217218
display(HTML(plot_html))
218219

219220

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'},
221223
validate=True, output_type='file',
222224
include_plotlyjs=True,
223225
filename='temp-plot.html',
@@ -338,8 +340,8 @@ def plot(figure_or_data, config = {'showLink':True, 'linkText':'Export to plot.l
338340
return plot_html
339341

340342

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'},
343345
validate=True, output_type='file', include_plotlyjs=True,
344346
filename='temp-plot.html', auto_open=True):
345347
"""
@@ -461,9 +463,10 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False, verbose=False,
461463
return iplot(plotly_plot, config, validate)
462464

463465

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):
467470
"""
468471
Convert mpl plots to locally hosted HTML documents.
469472
@@ -496,4 +499,4 @@ def enable_mpl_offline(resize=False, strip_style=False,
496499
formatter = ip.display_formatter.formatters['text/html']
497500
formatter.for_type(matplotlib.figure.Figure,
498501
lambda fig: iplot_mpl(fig, resize, strip_style, verbose,
499-
config, validate))
502+
config, validate))

0 commit comments

Comments
 (0)