【发布时间】:2022-01-20 05:35:06
【问题描述】:
我的代码
import seaborn as sns
import plotly.express as px
sns.histplot(df_user_test_session_question_accuracy, x="QuestionAccuracy")
df = df_user_test_session_question_accuracy
fig = px.histogram(df, x="QuestionAccuracy",
title='Histogram of QuestionAccuracy ',
opacity=0.8,
log_y=True, # represent bars with log scale
color_discrete_sequence=['indianred'] # color of histogram bars
)
fig.show()
在这里,我在单独的内核中同时运行 seaborn 和 plotly plot,seaborn 正在绘制预期的图,但 plotly 只是给出了一个没有图的大空白,它背后的错误是什么 我想使用 plotly 的交互性,任何帮助表示赞赏
【问题讨论】:
-
为什么不提供数据以进行重现?事实上,没有人有任何回应的动力。
-
添加截图
-
我会将链接分享到Colab。我将与您分享 Colab 链接,并在您验证后删除 Colab。
标签: python jupyter-notebook plotly seaborn histogram