在 3d 图的轴标签中添加换行符 –plotly

jjr*_*jrr 5 python plotly

按照另一篇文章 \xe2\x80\x93 中的建议插入<br>轴标签\xe2\x80\x93 在3d 图中不起作用

\n\n

有什么建议么?

\n\n

谢谢

\n\n

ps:这就是 3d 绘图的代码的样子

\n\n
layout = go.Layout(\ntitle=\'my_title\',\nscene=dict(\n    xaxis=dict(\n        title=\'x_title\' + \'<br>\' + \'at new line\',\n        titlefont=dict(\n            size=18\n        )\n    ),\n    yaxis=dict(\n        title=\'y_title\' + \'<br>\' + \'at new line\',\n        titlefont=dict(\n            size=18\n        )\n    ),\n    zaxis=dict(\n        title=\'z_title\' + \'<br>\' + \'at new line\',\n        titlefont=dict(\n            size=18\n        )\n    )\n)\n
Run Code Online (Sandbox Code Playgroud)\n