Re: Embedded formatting: !M single-symbol tag misbehaving? [message #59279] |
Mon, 17 March 2008 18:52 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ed Hyer writes:
> Test code:
> sz=[800,400]
> set_plot,'ps'
> device,/inches, xsize=sz[0]/75., ysize=sz[1]/75., $
> xoffset=0., yoffset=0., /portrait, /encapsulated, $
> filename='/users/hyer/science/slides/ps_test.ps'
> loadct,39
> plot,[0,1],[0,1],xtitle='This here: !MD : is
> Greek',font=0,charsize=3
> axis,yaxis=1,ytitle='This here: !MD : is Greek',font=0,charsize=2
> device,/close
>
> When I run this code, in a fresh IDL session,
> everything after the !M tag is in Symbol font,
> including the entire Y axis title.
This is pretty weird. It sure puts the PostScript device
into a funny place. You can "get out of it" by doing
something like this:
device, set_font='helvetica'
But I think the !M is causing the havoc. If you
replace !MD with !9D!X all seems to be well.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|