gnuplot(epslatex 终端)的轴标签中的数学格式未正确格式化 [英] math in axes labels for gnuplot (epslatex terminal) not formatted correctly

查看:23
本文介绍了gnuplot(epslatex 终端)的轴标签中的数学格式未正确格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 gnuplot (v 5.0) 中使用以下脚本生成图表

Using the following script in gnuplot (v 5.0) to generate a graph

set terminal epslatex

unset key

set xlabel "$zeta$"
set ylabel "$
ho$"

set output "strange_graph.tex"

plot sin(x)

set terminal wxt
set o

连同包含它的乳胶文档,

along with a latex document to include it,

documentclass{article}
usepackage{amssymb}
usepackage{graphicx}
egin{document}

egin{figure}
    egin{center}
        include{strange_graph}
    end{center}
end{figure}

end{document}

希腊字母rho和zeta没有出现在轴上,而且r已经从y轴上消失了,留下了ho".

the Greek letters rho and zeta do not appear on the axes, and furthermore r has disappeared from the y-axis, leaving "ho".

我该如何解决这个问题,发生了什么?

How do I fix this problem, and what is going on?

(不,请不要向我索要图片,显然我没有足够的声誉来上传图片.)

(And no, please don't ask me for an image, apparently I don't have enough reputation to upload one.)

推荐答案

使用双引号时,必须要么转义反斜杠,

You must either escape the backslashes, when using double quotes,

set xlabel "$\zeta$"
set ylabel "$\rho$"

或使用单引号

set xlabel '$zeta$'
set ylabel '$
ho$'

这篇关于gnuplot(epslatex 终端)的轴标签中的数学格式未正确格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆