加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

gmt绘图例子3

(2013-05-17 13:46:41)
分类: Unix基础
下面使用GMT绘制直方图。
------------------------------------------------------------------------------------------
#!/bin/sh
gmtset LABEL_FONT_SIZE 7.5p
gmtset ANNOT_FONT_SIZE_PRIMARY 7.5p
gmtset HEADER_FONT_SIZE 36p
gmtset PLOT_DEGREE_FORMAT dddF


ps1=Fig4d.ps
pshistogram Te.txt -Ba20f10/a4f2WSne -JX6c/4c -Z0 -G55 -R0/140/0/20 -W2 -F -P -L0.5p  -V >$ps1

------------------------------------------------------------------------------------------
其中,pshistogram命令的作用是:Bin data and plot histograms
各参数的意义为:
-Z Choose between 6 types of histograms: 0 = counts [Default], 1 = frequency_percent, 2 = log (1.0 + count),

-G Select filling of bars [Default is no fill].如果为0~255的数,则为灰度图,0为黑色,255为白色,200的浅灰色比较不错。

-R xmin, xmax, ymin, and ymax specify the Region of interest.如果不选的话,则自动分配。

-W Sets the bin width used for histogram calculation

-F Center bin on each value. [Default is left edge].

-P Selects Portrait plotting mode [Default is Landscape],因此,如果添加-P,则x轴在水平方向,如果不添加,则x轴在垂直方向。

-L Draw bar outline using the specified pen thickness. [Default is no outline].

-V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].

结果如下:
http://s13/mw690/62f3c4ef4dce39f58818c&690



0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有