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

Skip to content

Commit 8079534

Browse files
committed
Add layout to streaming, was validated, but not actually included.
1 parent d526683 commit 8079534

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plotly/plotly/plotly.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ def write(self, data, layout=None, validate=True,
427427
)
428428
del data['type']
429429

430+
if layout is not None:
431+
data.update(dict(layout=layout))
432+
430433
# TODO: allow string version of this?
431434
jdata = json.dumps(data, cls=utils._plotlyJSONEncoder)
432435
jdata += "\n"

0 commit comments

Comments
 (0)