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

博文

在字符上面画点的IDL程序

已有 3512 次阅读 2013-1-29 22:33 |个人分类:编程笔记|系统分类:科研笔记| 程序

Function plotuppoint, M

;+
;NAME:
;     plotuppoint
;PURPOSE:
;     plot a point on a string
;CALLING SEQUENCE:
;     rseult=plotuppoint(M)
;INPUT:
;     M --- a string added a point
;OUTPUT:
;     a string with a point
;EXAMPLE:
;     IDL > x=findgen(100)
;     IDL > y=4.0*x
;     IDL > entry_device=!d.name
;     IDL > set_plot,'PS'
;     IDL > device,filename='test.ps'
;     IDL > plot,x,y,psym=1,xtitle=plotuppoint(textoidl('M_{edd}'))
;     IDL > device,/close_file
;     IDL > set_plot,entry_device
;
;REVISION HISTORY:
;     Original by DL.Wang,Jul-18-2007
;-

   On_error,2

   return, '!S!A'+ string(183B) +'!R!N!X!N'+ M 

End



https://blog.sciencenet.cn/blog-456360-657715.html

上一篇:PS图上画出波长埃的IDL程序
下一篇:画出BLazars的能谱指数的IDL程序
收藏 IP: 123.86.144.*| 热度|

0

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

数据加载中...

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

GMT+8, 2024-4-25 16:04

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部