【问题标题】:ipython plotly can't create subplotsipython plotly 无法创建子图
【发布时间】:2016-03-29 18:16:08
【问题描述】:

我正在尝试使用plotly 制作子图,但它说工具模块没有名为make_subplots 的函数,尽管它说要这样做here。我很困惑。

from plotly import tools        # functions to help build plotly graphs
import plotly.plotly as py      # module that communicates with plotly 
from plotly.graph_objs import *
​
fig = tools.make_subplots(rows=23, cols=2)
fig['layout'].update(height=600, width=600, title='')
​
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-11-b8fb5b790a40> in <module>()
      3 from plotly.graph_objs import *
      4 
----> 5 fig = tools.make_subplots(rows=23, cols=2)
      6 fig['layout'].update(height=600, width=600, title='')

AttributeError: 'module' object has no attribute 'make_subplots'

【问题讨论】:

    标签: ipython plotly


    【解决方案1】:

    尝试升级你的 Plotly 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-23
      • 2021-01-12
      • 2021-07-21
      • 2022-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-04
      相关资源
      最近更新 更多