爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5203|回复: 6

[图形美化] grads2.1 新功能

[复制链接]
发表于 2016-4-13 12:34:46 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本帖最后由 寥寥然 于 2016-4-20 15:19 编辑

set rgb color# R G B             (GrADS version 2.0* and earlier)

set rgb color# R G B <A>         (GrADS version 2.1+)
... or ...
set rgb color# tile tile#        (GrADS version 2.1+, used only for pattern filling. See the set tile command for more information.)
where:


    color#  is the color number; it can range from 16 to 99 (or 255 or 2047 -- see Usage Note #1)
    R       is the Red value (0-255)
    G       is the Green value (0-255)
    B       is the Blue value (0-255)
    A       is the optional Alpha Channel value (0-255). A= 0 is fully transparent; A= 255 is fully opaque. Default is 255.
           If A is negative, then color masking will be used.
    tile#   is a tile number; it can range from 0 to 2047. Tiles are created with the set tile command.
The new color is referred to by its color# in any GrADS command that allows specification of colors.
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-4-13 14:24:19 | 显示全部楼层
gxprint

Beginning with GrADS version 2.1, the gxprint command will produce all hardcopy output in both image and vector graphic formats. The output is based on the current contents of the metabuffer, and it works in batch mode as well as interactive mode. It replaces the print, gxps, gxeps, and printim commands.

Syntax

gxprint filename options
where:

filename:  The name of the output file. If this file exists, it will be replaced.
           If the filename ends with ".eps", ".ps", ".pdf", ".svg", ".png", ".gif", or ".jpg", then GrADS will automatically create the output in the corresponding format.

options:
           eps         Produce output in EPS format
           ps          Produce output in PS format
           pdf         Produce output in PDF format
           svg         Produce output in SVG format
           png         Produce image output in PNG format
           gif         Produce image output in GIF format (not available with Cairo)
           jpg         Produce image output in JPG format (not available with Cairo)
           black       Use black background (default is current display setting)
           white       Use white background (default is current display setting)
           xNN         Horizontal image size in NN pixels (for image output only)
           yNN         Vertical image size in NN pixels (for image output only)
           -e NN       The blank edge around the plot will be NN inches wide (for PS, EPS, and PDF output only)
           -t NN       Color number NN is fully transparent
           -b bgImage  Image file bgImage is included in the background of the output
           -f fgImage  Image file fgImage is included in the foreground of the output
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-4-20 15:21:46 | 显示全部楼层
本帖最后由 寥寥然 于 2016-4-20 15:24 编辑

画阴影图
ftp://cola.gmu.edu/grads/scripts/shp_demo2.gs

   'set gxout shp'
   'set shp -pt shppt'
   'd myp'

'set line 20'
'set shpopts 20'
'draw shp shppt '
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-4-22 16:02:25 | 显示全部楼层
set strmden / set strmopts

set strmden density <arrow_spacing> <arrow_size> <arrow_type>

This command controls the appearance of the streamlines, drawn with 'set gxout stream'.

density        an integer between -10 and 10. Negative values are for high-res grids. The default value is 5.
arrow_spacing  a real number > 0.001 that controls the distance (in page inches) between arrows on each streamline
arrow_size     a real number >= 0.0 that controls the size (in page inches) of the arrows. The default value is 0.05.
arrow_type     may be 1 (for open arrow heads, "\/") or 2 (for closed arrow heads, filled triangles). The default value is 1.
密码修改失败请联系微信:mofangbao
发表于 2017-8-5 18:32:26 | 显示全部楼层
{:eb348:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-9-14 12:55:35 | 显示全部楼层
谢谢楼主分享,已拷贝留痕
密码修改失败请联系微信:mofangbao
发表于 2017-9-24 17:03:45 | 显示全部楼层
谢谢楼主哦
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

快速回复 返回顶部 返回列表