Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 153f65b

Browse files
committed
some stuff
1 parent 7e69cd9 commit 153f65b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plotly/offline/offline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def plot(figure_or_data,
408408
filename += '.html'
409409

410410
plot_html, plotdivid, width, height = _plot_html(
411-
figure_or_data, show_link, link_text, validate,
411+
figure_or_data, config, validate,
412412
'100%', '100%', global_requirejs=False)
413413

414414
resize_script = ''

plotly/plotly/plotly.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,10 +1402,10 @@ def _send_to_plotly(figure, **plot_options):
14021402
fig = tools._replace_newline(figure) # does not mutate figure
14031403

14041404
# replace '/' with ':' for errorless response
1405-
if 'data' in fig:
1406-
for item in fig['data']:
1407-
for key in ['xsrc', 'ysrc']:
1408-
item[key] = item[key].replace('/', ':')
1405+
#if 'data' in fig:
1406+
# for item in fig['data']:
1407+
# for key in ['xsrc', 'ysrc']:
1408+
# item[key] = item[key].replace('/', ':')
14091409

14101410
data = json.dumps(fig['data'] if 'data' in fig else [],
14111411
cls=utils.PlotlyJSONEncoder)

0 commit comments

Comments
 (0)