我在Ubuntu终端中编写了一些GDL实践代码。但是home/usr/Documents/GDL/
X = findgen(200) / 100 * !PI
Y = sin(X)
set_plot, 'ps'
device, filename = 'home/usr/Documents/GDL/sample.ps'
plot, X, Y, title = 'Y = sin(X)', xtit = 'x',ytit = 'Y'
device, /close
set_plot, 'win'
end
当我在Windows中运行此代码时,没有任何问题。 我不知道是什么问题。有谁能解决这个问题?