0

就像标题说的那样,有没有办法动态更新绘图图的标题?我希望能够通过流图的数据状态更改来更改图的标题。

问候

4

1 回答 1

1

您可以dict为布局参数添加第二个,这将允许您执行您所要求的操作:

your_stream.write({'y': 2}, {'title': 'i am dynamic'})

以下是 GitHub 存储库中的相关行:https ://github.com/plotly/python-api/blob/master/plotly/plotly/plotly.py#L448-487

尝试这样做以获取更多信息:

import plotly.plotly as py
help(py.Stream)
于 2015-05-24T07:26:52.003 回答