爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3252|回复: 8

[图形美化] GRADS画图编辑

[复制链接]
发表于 2016-3-26 22:58:40 | 显示全部楼层 |阅读模式

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

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

x
求助各位大神 在GRADS中可以把图形保存为矢量图吗?
密码修改失败请联系微信:mofangbao
发表于 2016-3-27 07:28:48 | 显示全部楼层
比如说EPS?当然可以啊,新版的grads直接gxprint命令输出就行了
密码修改失败请联系微信:mofangbao
发表于 2016-3-27 09:02:48 | 显示全部楼层
完全可以呀,或者保存完在画图中再保存都可以的
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-3-27 09:51:49 | 显示全部楼层
river 发表于 2016-3-27 07:28
比如说EPS?当然可以啊,新版的grads直接gxprint命令输出就行了

2.0版本的可以嘛 gxprint具体怎用的呢?麻烦你了
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-3-27 09:53:43 | 显示全部楼层
wuzhx777 发表于 2016-3-27 09:02
完全可以呀,或者保存完在画图中再保存都可以的

在GRADS中怎么保存呢?有时间可以说的具体点吗?我刚刚试了在画图中另存只能存位图呀 没有矢量图的呀
密码修改失败请联系微信:mofangbao
发表于 2016-3-27 11:18:56 | 显示全部楼层
2.0版本的用print ***.eps就可以了
密码修改失败请联系微信:mofangbao
发表于 2016-3-27 17:02:38 | 显示全部楼层
迷幻城堡 发表于 2016-3-27 09:51
2.0版本的可以嘛 gxprint具体怎用的呢?麻烦你了

2.0的不行,需要用别的命令来转换。2.1出图命令才统一成这个。具体用法楼主去看官方文档http://cola.gmu.edu/grads/gadoc/gadocindex.html

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
One or more options may be given in any order.

Usage Notes

gxprint works with GrADS version 2.1+.
bgImage and fgImage must be PNG format.
The GIF and JPG image formats are not support by the Cairo library. These options will work only when using the GD library for rendering image output.
The default width of the edge around the PS, EPS, and PDF output files is 0.15625 inches. An edge width smaller than the default may result in the plot getting cropped by the printer.
In GrADS version 2.1+, it is also possible to achieve color transparency (full or partial) using the set rgb command.
Multi-page output is not yet supported with gxprint.
Examples

The following command produces a 1024x768 PNG image into file test.png:

gxprint test.png x1024 y768
This command produces a GIF image with transparent color 0 and a background image mybkg.png. This means that in test.png, the background image mybkg.png will be seen wherever the color 0 (background) appeared in the current display.

gxprint test.png -b mybkg.png -t 0

.
密码修改失败请联系微信:mofangbao
发表于 2016-3-28 09:37:58 | 显示全部楼层
迷幻城堡 发表于 2016-3-27 09:53
在GRADS中怎么保存呢?有时间可以说的具体点吗?我刚刚试了在画图中另存只能存位图呀 没有矢量图的呀{:sa ...

那你就按river大神的来就行
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-3-28 11:18:17 | 显示全部楼层
river 发表于 2016-3-27 17:02
2.0的不行,需要用别的命令来转换。2.1出图命令才统一成这个。具体用法楼主去看官方文档http://cola.gmu. ...

大神 2.0的print XXX.eps也可以生成eps格式的图 那个这样产生是不是矢量图呢 我这样画出来感觉和PNG的图没什么区别呀
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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