当我尝试将一个Figure对象传递给布局中的dcc.Graph()时,我得到一个错误消息: dash.exceptions.InvalidCallbackReturnValue: The callbackExpected the output type to be a list or tuple but got:
Figure({# the content of the figure}) 我的代码如下
我完全超出了我的舒适范围,但我被要求并排绘制一些数据。我设法将我的数据绘制成图表,但我想不出如何让它们并排作图。我读过关于使用plt.subplot的文章,但是我一直未能成功地使用它(它只是给了我空白的图表)。下面是我为这两个图编写的代码: for rect in rects:
height = rect.get_height()rotation=30, ha='right') # ha is the same as