comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Sun Symbol
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: sun symbol [message #80629 is a reply to message #41403] Wed, 27 June 2012 18:15 Go to previous messageGo to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Jun 26, 3:38 am, Fab <fabien.mauss...@gmail.com> wrote:
> Maybe cgSymbol?
>
> http://www.idlcoyote.com/programs/cgsymbol.pro

Here is what I do with reasonably good results (i.e., not an off-
center dot). I adapted Michael Galloy's vis_psfrag for this. The basic
steps are:

1. Generate your plot in PS with the /TIMES switch and !P.FONT=0
2. Run ms_psfrag with this syntax:

ms_psfrag,input_ps_filename,latex_template_filename,output_p s_filename, "actual
text in the ps","replacement latex text"

You will have to download ms_psfrag.pro (here:
http://astro.phy.vanderbilt.edu/~sinham/code/ms_psfrag.pro). Also, you
have to create a Latex template file -- the contents for the latex
template are in the comments on the top of ms_psfrag.pro.

I still haven't figured out how to sent the font size correctly so you
will have to play around with this line in the latex template:

\psfrag{tag_text}[c][c][1.5]{replacement_text} ,

where 1.5 represents the font size scaling. You will have to change
that 1.5 value such that the replacement font size is similar to other
font sizes in the plot.

For the solar mass symbol, the latex replacement text would be '$M_
\odot$'. A code snippet could be:

-----------------------
set_plot,'ps'
!p.font=0
fname = 'plot.eps'
templatefname = 'figure.tex' ;;;; you will have to create this latex
template file as figure.tex
device,filename=fname,/color,/portrait,bits_per_pixel=8,/enc apsulated,/
times
xtitle = 'ZM'

plot,findgen(10),xtitle=xtitle

device,/close
outfname = fname
ms_psfrag,fname,templatefname,outfname,xtitle,'Mass [M$_\odot$]'
-----------------------

Hope this helps.

Cheers,
Manodeep
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: help with imdisp
Next Topic: Re: WHERE routine

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:34:07 PDT 2025

Total time taken to generate the page: 0.00664 seconds