使用gnuplot创建gif:Gif无法播放 [英] Creating a gif with gnuplot: Gif doesn't play

查看:94
本文介绍了使用gnuplot创建gif:Gif无法播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用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?

我正在使用Windows 7 x64和gnuplot 4.6补丁0.在文件夹"文件夹中,有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-18 -9.160938e-18 -3.999043e-18

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆