Plot 八度图中的希腊字母不导出为EPS

Plot 八度图中的希腊字母不导出为EPS,plot,octave,Plot,Octave,我不能让八度音阶输出标题中带有希腊符号的EPS数字。我的意思是,它确实显示在倍频程内,但当我将其打印到EPS文件print-depsc2 filename.EPS时,它显示的是alpha而不是符号alpha。我猜您希望EPS包含在latex文档中?有很多方法可以做到这一点。一种流行的方法是使用psfrag 我建议使用 print -depslatex yourfile.eps 它将仅使用图形部分和包含yourfile.eps的yourfile.tex创建yourfile.eps。然后,您可以使

我不能让八度音阶输出标题中带有希腊符号的EPS数字。我的意思是,它确实显示在倍频程内,但当我将其打印到EPS文件print-depsc2 filename.EPS时,它显示的是alpha而不是符号alpha。

我猜您希望EPS包含在latex文档中?有很多方法可以做到这一点。一种流行的方法是使用psfrag

我建议使用

print -depslatex yourfile.eps
它将仅使用图形部分和包含yourfile.eps的yourfile.tex创建yourfile.eps。然后,您可以使用\include将其添加到主latex文档中

如果您只想在没有主latex文档的情况下打印,则可以使用 print-depslatexstandlone yourfile.eps 让latex处理代码。下面是一个简单的例子:

close all
graphics_toolkit fltk
sombrero ();
title ("Plot the familiar 3-D sombrero function:\
$z = \\frac{\\sin\\left(\\sqrt{x^2 + y^2}\\right)}{\\sqrt{x^2 + y^2}}$");
print -depslatexstandalone test_epslatex

system("latexmk test_epslatex.tex -ps");
system("latexmk -c");
这样您就有了很大的灵活性,可以使用所有Latex命令

另一种非常简单的方法是使用gnuplot:

graphics_toolkit gnuplot
plot(1:2);
title('\alpha')
print -depsc out.eps

谢谢您可以解释一下-depslatexstandlone的区别吗?print-depslatex创建一个.tex文件,该文件打算包含在另一个.tex文件中,例如用Latex编写的文章或书籍。print-depslatexstandlone创建一个.tex文件,该文件可以直接用latex编译