Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Pyxplot 中制作多线图标题?我确实了解“设置标题”命令接受 LaTeX 字符串并尝试以多种方式注入换行符。
最终,Pyxplot 似乎只是忽略了换行指令。例如:
set title 'First line$\newline$Second line'
将生成一个标题为“First lineSecond line”。
有什么诀窍可以使这项工作以某种方式进行吗?
我正在使用 Pyxplot 0.9.2。
根据上面评论中的克里斯托夫:
您可以尝试将所有内容放在 \parbox 中,请参阅“10.15 LaTeX 和 Pyxplot”:set title '\parbox{6cm}{\centering First line\newline Second line}'。我无法测试它,因此我只是将其发布为评论。
\parbox 似乎确实可以解决问题。我对此进行了测试,它确实允许我执行换行符。
谢谢!