我正在使用win7和octave 3.6.4,当我生成一个带八度音的情节并保存为.eps时它的颜色会消失.例如 :
clf();
surf(peaks);
Run Code Online (Sandbox Code Playgroud)
生成以下图形

但是当我单独运行以下代码时
saveas (1,"test.eps") or print (1,"test.eps") or print -deps test.eps
Run Code Online (Sandbox Code Playgroud)
将图形保存为.eps并将其导入胶乳,它变为灰度.

尝试
print -depsc test.eps
Run Code Online (Sandbox Code Playgroud)
要么
print -color -depsc test.eps
Run Code Online (Sandbox Code Playgroud)
如果第一个不起作用.
编辑:
您使用的是哪种图形工具包?有gnuplot,它对我来说很好(Octave 3.6.2,Win XP)使用-eps标志.