gnuplot中填充面积——filledcurve的使用

set term post
set output "fig1.eps"
set size 1, 1
set multiplot layout 2, 2
set size 0.5, 0.5

set origin 0, 0.5
set title "Fig1: Fill area between two curves"
set style data lines
set xrange [0:5]
plot "a.dat" u 1:2:3 "%lf %lf %lf" w filledcu

set origin 0.5, 0.5
set title "Fig2: plot with filledcurve"
plot [0:10] [0:5] sqrt(x) with filledcurve x1

set origin 0,0
set title "Fig3: plot with filledcurve"
plot [0:10] [0:5] sqrt(x) with filledcurve xy=3,4

set origin 0.5,0
set title "Fig4: plot with filledcurve"
set style fill pattern 2
plot [0:10] [0:5] sqrt(x) with filledcurve y=4 

unset multiplot

set output

reset


效果如图:


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值