立即注册 登录
气象家园 返回首页

Lighting的个人空间 http://bbs.06climate.com/?55384 [收藏] [复制] [分享] [RSS]

日志

[NCL] 常用绘图源

热度 1已有 1746 次阅读2016-10-12 11:15 |个人分类:NCL

不定时更新

1.   GSN   http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml

gsnDebugWriteFileName          
               用于报告bug等信息

gsnContourLineThicknessesScale      
            用于设置等值线粗细,可以是标量也可以是数组,当数组数小于等值线数时,剩余的等值线粗细将设为默认值 1.0


gsnContourNegLineDashPattern/gsnContourPosLineDashPattern
            用于设置正/负等值线的线形

gsnContourZeroLineThicknessF
          
设置 0 等值线的粗细

gsnCenterString/gsnLeftString/gsnRightString
          
设置图形顶部中间/左/右等字符串
gsnCenterStringFontColor                字符串字体颜色
gsnCenterStringFontHeightF            字符串字体大小
gsnCenterStringFuncCode                 字符串字符编码
gsnCenterStringOrthogonalPosF      上下移动字符串
gsnCenterStringParallelPosF              左右移动字符串

gsnMajorLatSpacing/gsnMajorLonSpacing
      
绘制map图时用于设置大刻度的经纬度间隔

gsnMinorLatSpacing/gsnMinorLonSpacing
      
绘制map图时用于设置小刻度的经纬度间隔

gsnMaskLambertConformal
      
控制Lambert投影的掩膜,掩膜的范围由
  mpMinLonF , mpMaxLonF, mpMinLatF, mpMaxLatF    这些源控制
      
mpProjection   设置投影方式
       gsnMaskLambertConformalOutlineOn       控制掩膜边界是否绘制

gsnMaximize
      
最大化绘图框
       对于X11窗口或ncgm文件,这意味着将最大化填充绘图框
       对于 ps 和 pdf 文件,可以通过以下源设置绘图大小
                 
gsnPaperOrientation, gsnPaperMargin, gsnPaperWidthgsnPaperHeight.
       对于5.2.0 ,  最好使用以下源设置图形大小
                
wkPaperSize or wkPaperWidthF / wkPaperHeightF   这些源只能用于  gsn_open_wks. 函数
 


Resources for “gsn_panel” procedure

gsnPanelBoxes             Turn on panel debug box outlines

gsnPanelDebug            Turn on panel debug prints

gsnPanelFigureStrings       Add figure strings to panel plots

gsnPanelFigureStringsPerimOn           控制图形字符串周围的矩形框

gsnPanelLabelBar        Turn on panel labelbar

gsnPanelRowSpec              Specify number of plots per row

gsnPanelScalePlotIndex    Set the index of the plot to be used for scaling

gsnPanelXF                   Set location of left edge of paneled plots

gsnPanelYF                   Set location of top edge of paneled plots

gsnPanelBottom              底

gsnPanelTop                   顶高

gsnPanelLeft                    左边界

gsnPanelRight                  右边界               

gsnPanelYWhiteSpacePercent          多个图形Y轴的间隔(可设置为 5 )

gsnPanelXWhiteSpacePercent           ..............X.................................

gsnPanelFigureStringsBackgroundFillColor       字符串背景色

gsnPanelFigureStringsFontHeightF                    字符串字符大小

gsnPanelFigureStringsJust                             控制字符串位置,6.4.0 以后版本 可设置 "TopRight", "TopLeft", etc.         
gsnPanelMainString             panel图主字符串

gsnPanelMainFont               panel图主字符串字体

gsnPanelMainFontColor       .........................颜色

gsnPanelMainFontHeightF     ........................ 字体大小  

gsnPanelRowSpec        设置panel图的排列方式     

默认情况下panel图的排列时根据  gsn_panel  函数的dims变量进行排列的,如果设置此源为   True, 可以自定义panel图的排列,比如(/2, 3, 1/),即第一行 2 列, 第二行 3 列, 第三行 1 列

gsnPanelScalePlotIndex

         By default, the gsn_panel routine uses the first valid plot in its list to determine the scale factor for resizing all of the plots to be paneled. If your plots are slightly different sizes, you can use this resource to indicate the index of which plot should be used to determine the scale factor. This is especially useful if your first valid plot is smaller than one or more of the others in the list.

Available in version 5.1.0 and later.

Default: 0 or the id of the first valid plot in the list

txString                     Set a main title for paneled plots (a misnomer here)


发表评论 评论 (2 个评论)

回复 贫道敬孔 2016-10-26 19:52
楼主棒   
回复 贫道敬孔 2016-10-26 19:52
楼主棒   

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

返回顶部