我有一个简单的脚本:
set term postscript portrait color
set output 'output.ps'
plot 'data_file' using 1:2:3 with image, 'data_file2' using 1:2 with lines
Run Code Online (Sandbox Code Playgroud)
问题是该with image命令使抽动杆在两个轴上都消失了,除非删除该命令,否则我无法使gnuplot显示它们,因为我正在绘制一个命令,所以我无法这样做cbrange(第三列是范围)
谢谢。
小智 6
pm3d与“用图像绘图...”不同,因此解决方法可能不是最佳解决方案。看起来,当您使用“ with image”选项时,gnuplot会自动将tic设置为背景,因此
set tics front
Run Code Online (Sandbox Code Playgroud)
应该可以解决问题(至少在我的情况下如此)。