zgyin的个人博客分享 http://blog.sciencenet.cn/u/zgyin

博文

idl 将两个直方图叠加到一块

已有 6073 次阅读 2014-4-27 23:55 |个人分类:idl使用方法|系统分类:科研笔记| 两个直方图叠加到一块

下面的小程序是将两个直方图叠加到一块的一个模板

pro plotplothist
readcol,'/root/afuwuqicopy/afuwuqicopy/rho350/copy/stn/stnmass.txt',F='i,f,f,f',index,fluxf,tempf,massf
readcol,'/root/afuwuqicopy/afuwuqicopy/aCO12/plot/mass.txt',massg,index1,index2,tempg,fluxg
a=massf
b=massg
LoadCT, 40, NColors=100, Bottom=1, /Silent
set_plot,'PS'
filename='/root/afuwuqicopy/afuwuqicopy/rho350/copy/stn/fg.eps' ; set the file name of the output ps file
device,file=filename,/ENCAPSULATED,/COLOR, BITS=8,xsize=xsize,ysize=ysize
plothist,a, bin=0.2,COLOR=99,xtitle='M/M'+sunsymbol(),ytitle='N';
plothist,b, bin=0.2,COLOR=20,/OVERPLOT; If set, will overplot the data on the current plot
device,/CLOSE
print,'program end'
end




https://wap.sciencenet.cn/blog-783377-789259.html

上一篇:卷积核(多波段协作)
下一篇:2014年射电天文暑期学校(火热招生中)
收藏 IP: 159.226.171.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

全部作者的精选博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-20 09:03

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部