- 积分
- 739
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-7-25
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 飞云侠客 于 2013-8-14 15:11 编辑
跑了个官网上的例子,没能画出彩色的图,请问问题出在哪啊?resources还需哪些设置吗?谢谢!
- load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" ; Load the NCL file that contains the gsn_*
- ; functions used below.
- begin
- x = (/10.,20.,30.,40.,50.,60.,70.,80.,90./)
- y2 = (/(/0., 0.7, 1., 0.7, 0., -0.7, -1., -0.7, 0./),\
- (/2., 2.7, 3., 2.7, 2., 1.3, 1., 1.3, 2./),\
- (/4., 4.7, 5., 4.7, 4., 3.3, 3., 3.3, 4./)/)x@long_name = "X" ; Define attributes of x
- y2@long_name = "Y" ; and y2.resources = True ; Indicate you want to
- ; set some resources.
- resources@xyLineColors = (/2,3,4/) ; Define line colors.
- resources@xyLineThicknesses = (/1.,2.,5./) ; Define line thicknesses
- ; (1.0 is the default).
- wks = gsn_open_wks("x11","gsun01n") ; Open an X11 workstation.
- plot = gsn_xy(wks,x,y2,resources) ; Draw an XY plot.delete(plot) ; Clean up.
- delete(resources)
- end
复制代码
|
|