Gnuplot显示情节,但文件总是0kb

时间:2014-07-10 16:54:48

标签: gnuplot

我正在尝试使用gnuplot绘制数据,并将图表保存到图像文件中。问题是图像文件总是0kb。

file = "energy_distribution_b.dat";

set title 'Energy Distribution';
set output "graphs/energy_distribution_b.jpeg";
set key top left;

plot file using 1:2 with lines pt 7

弹出图形,但是当我检查图形的图像文件时,文件大小为0kb。我使用的是Windows 8.1。

1 个答案:

答案 0 :(得分:0)

对于Windows系统来说,重要的是通过设置输出关闭文件""在情节命令之后

file = "energy_distribution_b.dat"
set title 'Energy Distribution'
set key top left
set output "graphs/energy_distribution_b.jpeg"
plot file using 1:2 with lines pt 7
set output
相关问题