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


效果如图:


没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试