#set terminal png set terminal png nocrop font "/usr/share/fonts/dejavu/DejaVuSans.ttf" 10 set output "../plot/tmp.png" #Remove Bad Data Points limitlo(x,lo) = (x>lo) ? x : 0/0 limithi(x,hi) = (x0.2955) set label 1 "1" at max_x_p,0.8360 if (max_y<5.4740) if (max_y>1.5358) set label 2 "2" at max_x_p,2.3645 if (max_y<7.9804) if (max_y>3.3045) set label 3 "3" at max_x_p,4.3439 if (max_y<10.7832) if (max_y>5.4740) set label 4 "4" at max_x_p,6.6880 if (max_y<13.8540) if (max_y>7.9804) set label 5 "5" at max_x_p,9.3467 if (max_y<17.1711) if (max_y>10.7832) set label 6 "6" at max_x_p,12.2866 if (max_y<20.7173) if (max_y>13.8540) set label 7 "7" at max_x_p,15.4829 if (max_y<24.4788) if (max_y>17.1711) set label 8 "8" at max_x_p,18.9165 if (max_y<28.4439) if (max_y>20.7173) set label 9 "9" at max_x_p,22.5720 if (max_y<32.6026) if (max_y>24.4788) set label 10 "10" at max_x_p,26.4366 if (max_y>28.4439) set label 11 "11" at max_x_p,30.4996 if (max_y>32.6026) set label 12 "12" at max_x_p,34.7518 plot a0(x) notitle with points 0, a1(x) notitle with points 0, a2(x) notitle with points 0, a3(x) notitle with points 0, a4(x) notitle with points 0, a5(x) notitle with points 0, a6(x) notitle with points 0, a7(x) notitle with points 0, a8(x) notitle with points 0, a9(x) notitle with points 0, a10(x) notitle with points 0, a11(x) notitle with points 0, "../plot/tmp.txt" us 2:(limitlohi(($9),-1,61)) w l title "Wind" lt 1, "" us 2:(limitlohi(($10),-1,100)) w l title "Boeen" lt 2 unset label 1 unset label 2 unset label 3 unset label 4 unset label 5 unset label 6 unset label 7 unset label 8 unset label 9 unset label 10 unset label 11 unset label 12 set yrange[*:*] set format x "%H:%M" set tmarg 0 set bmarg 2 set lmarg 7 set rmarg 7 set size 1,0.25 set origin 1,0 set autoscale fix set yrange [] writeback #plot "../plot/tmp.txt" us 2:($8+6) notitle, "" us 2:($8-1) notitle plot "../plot/tmp.txt" us 2:(limitlohi(($8+7),900,1100)) notitle, "" us 2:(limitlohi(($8-1),900,1100)) notitle set yrange restore set origin 0,0 plot "../plot/tmp.txt" us 2:(limitlohi(($8),900,1100)) w l title "Luftdruck" set format x "" set y2tics set y2tics mirror unset ytics set tmarg 0 set bmarg 0 set lmarg 7 set rmarg 7 set size 1,0.15 set origin 1,0.6 set y2range [0:*] set autoscale fix set y2range [] writeback #plot "../plot/tmp.txt" us 2:(($12-a)*1.7) axis x1y2 notitle plot "../plot/tmp.txt" us 2:(limitlohi((($12-a)*1.7),-1,1000)) axis x1y2 notitle set origin 0,0.6 set y2range restore plot "../plot/tmp.txt" us 2:($12-a) axis x1y2 w l title "Niederschlag" lt 2 set tmarg 0 set bmarg 0 set lmarg 7 set rmarg 7 set size 1,0.15 set origin 0,0.25 set y2range[0:360] set y2tics 90 #plot "../plot/tmp.txt" us 2:($11*22.5) axis x1y2 title "Windrichtung" plot "../plot/tmp.txt" us 2:($11*22.5) axis x1y2 notitle with points 2, "" us 2:($11*22.5+360) axis x1y2 notitle with points 2 set nomultiplot #pause -1