使用 gnuplot 创建 gif:Gif 不播放 [英] Creating a gif with gnuplot: Gif doesn't play
问题描述
我想用 gnuplot 做一个 gif 动画,所以我写道:
I want to do a gif animation with gnuplot so I wrote:
set terminal gif size 1000,800 animate delay 6
set output 'foobar.gif'
set xrange [0:64]
set yrange [0:64]
do for [i=100:5000:100] {
plot sprintf('folder\name%d.dat',i) u 2:3:(20*$5):(20*$6) with vectors filled head lw 3,
sprintf('folder\name%d.dat',i) u 2:3 with points pt 7 ps 2
}
问题是,虽然它没有显示任何错误或警告,但当我用 chrome 打开 gif 文件时,或者它不播放 gif.有什么问题吗?
The problem is that, although it doesn't show any error nor warning, when I open the gif file with chrome or ie it doesn't play the gif. What's wrong with it?
我使用的是带有 gnuplot 4.6 补丁 0 的 Windows 7 x64.在文件夹文件夹"内有 50 个文件的集合,这些文件只有 1 行文本.这些行的一个例子是:
I'm using windows 7 x64 with gnuplot 4.6 patch 0. Inside the folder "folder" there is a collection of 50 files that have only 1 line of text. An example of these lines is:
0 1.000000e+00 1.000000e+00 1.867146e+00 6.411429e-18 -1.234238e-17 1.106649e-02 8.568272e-189-38e-1619-39838383
0 1.000000e+00 1.000000e+00 1.867146e+00 6.411429e-18 -1.234238e-17 1.106649e-02 8.568272e-18 -9.160938e-18 -3.999043e-18
推荐答案
对.这听起来很愚蠢,但我认为我正在绘制正确的列,相反,我正在绘制始终具有相同值的两列......感谢您的努力.——
Right. It would sound very stupid but I was thinking that I was plotting the correct columns and instead, I was plotting two columns that always have the same value... Thank for your effort. –
这篇关于使用 gnuplot 创建 gif:Gif 不播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!