带袖扣的情节的轴标题
我正在尝试使用袖扣来板条板块数据框的表面图。
我想拥有自定义的轴标题(title_1
,title_2
和title_3
)和带有数学符号的绘图标题。但是,我得到的情节不会显示我的轴标题,在绘图标题中,我只看到数学符号,而不是“我的标题”。为什么它不起作用以及如何解决?
我正在jupyter笔记本上工作。
import cufflinks as cf
cf.set_config_file(offline=True, dimensions=((1000,600)), theme = 'white')
pd.DataFrame([(1,2),(3,4)]).iplot(kind = 'surface', xTitle = "title_1", \
yTitle = "title_2" , zTitle = "title_3",\
title = r"My title with $\sigma$")
I am trying to crate a surface plot of a pandas DataFrame using cufflinks.
I would like to have customized axes titles (title_1
,title_2
and title_3
) and a plot title with a math symbol. However the plot I get does not display my axes titles and in the plot title I only see the math symbol but not "My title with ". Why it does not work and how to fix it?
I am working in a Jupyter notebook.
import cufflinks as cf
cf.set_config_file(offline=True, dimensions=((1000,600)), theme = 'white')
pd.DataFrame([(1,2),(3,4)]).iplot(kind = 'surface', xTitle = "title_1", \
yTitle = "title_2" , zTitle = "title_3",\
title = r"My title with $\sigmaquot;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于
iplot
返回一个情节图,因此您可以提供一个布局对象,如下(请参阅绘图文档以了解布局的工作原理):vizug.png“ rel =” nofollow noreferrer“>
Since
iplot
returns a Plotly figure, you can provide a layout object, as follow (refer to Plotly documentation to understand how layout works):As for why in the title you only see the rendered sigma and not the text, that is a bug with Plotly. Nothing we can do about it, for now.