使用gnuplot批量画图

处理数据使用gnuplot画图,遇到一个需要批量画图的需求,即将2年的数据,以每28天一张图绘制,一共大概绘制26张左右。

在gnuplot中,也可以使用do循环来绘制,就是在处理时间变化的时候要注意,代码如下:

set xdata time
set timefmt "%Y-%m-%dT%H"
set xtics format "%Y-%m\n%H:%M" nomirror

set term png size 1600,1200
date1=strptime("%Y-%m-%dT%H",'2015-01-01T0')
do for [t=0:25] {
outfile = sprintf('shanghai-hourly-%03i.png',t)
set output outfile
set multiplot
set size 1,0.5
set origin 0,0.5
clear
date2=date1+(14*24-1)*3600
set xrange [date1:date2]
plot 'weibonum-shanghai-hour.txt' u 1:3 w lp t ''
set origin 0,0
clear
date1=date2+3600
date2=date1+(14*24-1)*3600
set xrange [date1:date2]
replot
unset multiplot
unset output
date1=date2+3600
}


已发布

分类

,

来自

标签:

评论

《 “使用gnuplot批量画图” 》 有 13 条评论

  1. ordering androxal generic london

    androxal without prescription cheap

  2. buying enclomiphene price uk

    online order enclomiphene purchase no prescription

  3. hwat ise the price of rifaximin

    discount rifaximin canadian discount pharmacy

  4. cheapest buy xifaxan price usa

    cheap xifaxan generic overnight shipping

  5. commander avodart generic

    discount avodart buy online uk

  6. cheapest buy staxyn generic online pharmacy

    get staxyn generic london

  7. comment obtenir l’annonce kamagra pour femme au coût

    kamagra consultation de médecin en ligne gratuite

  8. purchase dutasteride ireland over the counter

    discount dutasteride generic tablets

  9. online order flexeril cyclobenzaprine buy online australia

    online order flexeril cyclobenzaprine generic sale

  10. how to order gabapentin generic online usa

    ordering gabapentin buy online australia

  11. how to buy fildena cheap trusted

    walmart pharmacy price for fildena

  12. ordering itraconazole uk no prescription

    itraconazole no s consult

  13. mト嬪i dostat kamagra pナ册s pナ册pテ。ナセku

    koupit kamagra online bez lテゥkaナ冱kテゥho pナ册dpisu

回复 get androxal generic equivalent buy 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注