【发布时间】:2021-12-12 14:02:02
【问题描述】:
目前我使用 plotly 并且当我使用多行标题时它看起来不太好,它没有对齐。有没有办法正确对齐它们?
这就是现在的样子:
import pandas as pd
import plotly.express as px
s = pd.Series(np.random.randn(5), index=["a", "b", "c", "d", "e"])
fig = px.line(s, title='This is a fantasy dataset <br> Why is this line not aligned with the text above?')
fig.show
输出:
【问题讨论】:
-
您在
<br>之后使用了空白。删除后你有你想要的吗?