有没有办法制作一个只显示文本的情节图?

Is there a way to make a plotly plot that just displays text?

我正在创建一个破折号应用程序,它会进行一些回调,直到它最终绘制出 3D 散点图。这大约需要一两秒钟。我想知道是否有一种方法可以在开始时制作一个只包含文本的绘图(类似于“正在计算绘图。这可能需要几秒钟。”)。

到目前为止我正在做类似

的事情
    dcc.Graph(
        id='scatter_plot',
        figure=px.scatter_3d(title="Plot is being computed. This can take some seconds."),

    ),

所以我从一个显示我想要的消息的空图开始。这没关系,但我更愿意让文字更引人注目,没有情节,吸引注意力。有办法吗?

目前看起来是这样的:

在全息视图中有类似的东西:https://holoviews.org/reference/elements/bokeh/Div.html#elements-bokeh-gallery-div

您可以使用:

dcc.Graph(
        id='scatter_plot',
        figure=px.scatter_3d().add_annotation(text="Plot is being computed. This can take some seconds.", showarrow=False, font={"size":20})
)

然后在回调中用完全构造的 3d 散点图替换图形