- 积分
- 2040
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-20
- 最后登录
- 1970-1-1
|
发表于 2011-9-27 13:12:10
|
显示全部楼层
何永利 发表于 2011-9-27 11:08
在两条线之间填上颜色,这是个好问题,不知道其他人是怎么做的
P系下Eta坐标示例图
我这有个示例图,是P系下的Eta坐标,每一条线对应于一个Eta值,但是图的右边和坐标轴合不上,我已经将最右边的点包括进去了,图我粘贴了,但是好像看不到,我再传份附件。下面是我的画图程序
PRO PLOT_ETA
; This a example of Eta coordinate system, Eta=(P-Pt)/(P-Ps),$
; Pt is the top pressure and Ps is the surface pressure
erase
x=indgen(110)*0.1
ps=1500-exp(1.0/((x-5)^2+2.2))*500
pt=10
plot,x,ps,yrange=[1000,10],/ylog,xrange=[0,11],xstyle=1,ystyle=1
for eta=0.05,0.95,0.05 do begin
p=eta*(ps-pt)+pt
oplot,x,p
; fill the blank between each two P lines with different color
; the first and last points:
PXVAL = [x[2],x,x[109]]
polyfill, PXVAL, [1000,p,1000],COL=eta*!D.N_COLORS
endfor
end
|
评分
-
查看全部评分
|