Gif Animation in Gnuplot

前端 未结 1 805
不知归路
不知归路 2020-12-15 11:50

I have a data file separated by two lines. Each section of data is ~50 lines. I\'m trying to make a .gif file. I know how to plot them individually or in a group but can\'t

相关标签:
1条回答
  • 2020-12-15 12:12

    Why don't you show what you have tried?

    The following should work fine:

    set terminal gif animate delay 100
    set output 'foobar.gif'
    stats 'datafile' nooutput
    set xrange [-0.5:1.5]
    set yrange [-0.5:5.5]
    
    do for [i=1:int(STATS_blocks)] {
        plot 'datafile' index (i-1) with circles
    }
    

    with the file datafile:

    0
    1
    
    
    2
    3
    
    
    4
    5
    

    gives

    enter image description here

    0 讨论(0)
提交回复
热议问题