2017-10-08 100 views
1

我试图将背景画得更“红”,冒号2的数字越高。但我没有运气完成这件事。如何根据数据逐渐设置背景

set terminal wx size 700,300 
set palette defined (0 "white", 1 "red") 
set autoscale cbfix 
set autoscale xfix 
set autoscale yfix 
set y2range [0:1] 
set y2tics 

$data << EOD 
1501293600 0 2348.81 
1501297200 8 2338.23 
1501300800 7 2325.25 
1501304400 16 2349.49 
1501308000 13 2354.78 
1501311600 18 2349.97 
1501315200 14 2361.19 
1501318800 16 2350.1 
1501322400 8 2325.57 
1501326000 12 2296.07 
1501329600 24 2309.74 
1501333200 30 2301.21 
1501336800 30 2308.85 
1501340400 19 2321.49 
1501344000 24 2315.54 
1501347600 17 2331.58 
1501351200 17 2350.56 
1501354800 20 2344.22 
1501358400 15 2339.81 
1501362000 19 2326.6 
1501365600 8 2313.58 
1501369200 13 2318.37 
EOD 

plot '$data' using 1:(1):2 with image axes x1y2, \ # just use 1 (the max y2 value) as y value 
    '$data' using 1:3 with lines axes x1y1 

回答

0

你可以尝试使用彩色框样式,而不是像风格:

set style fill solid 
plot '$data' using 1:(1):2 with boxes linecolor palette axes x1y2, \ 
    '$data' using 1:3 with lines axes x1y1 

结果:

background colored by column

+0

我想要的结果更加模糊(渐变色) ,但这与我所想的一样接近。谢谢! PS随着数据量的增加自动变得更加模糊:-) – KIC