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

Home » Public Forums » archive » Anstrom symbol not showing up on PS output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Anstrom symbol not showing up on PS output [message #84018] Wed, 24 April 2013 10:21 Go to next message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Dear IDL users,

I'm trying to create an Angstrom symbol (using CGSYMBOL) within the PS environment (using PS_START and PS_END). However, the output is not showing the correct Angstrom symbol: the small circle above it is missing.

When I call PS_END with the /PNG option, I can see in the PNG file that everything's OK with the symbol.

Here is the piece of the code where I want the Angstrom symbol to appear:

+++++++++++++++++++++++++

ps_start, filename=nameout[0]+'.ps', /quiet, /nomatch

[LOTS OF COMMANDS]

setdecomposedstate, 1, currentstate=mode
[CGPLOT, CGPLOTS, etc.]
setdecomposedstate, mode

cgcolorbar, range=alog10([minvalue,maxvalue]),$
position=[0.764567+0.01,0.13,0.764567+0.03,0.925709],$
yminor=1, charsize=0.9, format='(F0.1)',$
title='Residual flux (erg s$\up-1$ cm$\up-2$ $\angstrom$$\up-1$)',$
/vertical, /right

ps_end, /png

+++++++++++++++++++++++++


Anyone have any idea of what's happening?

Thanks in advance.

m.
Re: Anstrom symbol not showing up on PS output [message #84070 is a reply to message #84018] Thu, 25 April 2013 10:47 Go to previous message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Hi David,

Thank you very much for you quick response (as always!).

Well, I think I will take your advice and switch to true-type fonts, since I know that the upper case accented letters do show up with this type of font.

Thanks again.

m.
Re: Anstrom symbol not showing up on PS output [message #84071 is a reply to message #84018] Thu, 25 April 2013 10:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> Is there any way of setting the size of the text window?

You look like you are using a large character size, so I suppose it is
possible you are writing outside of the graphics "window". Have you
tried moving the left-hand edge of your plot over a little to give
yourself more room for the axis annotation?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Anstrom symbol not showing up on PS output [message #84074 is a reply to message #84018] Thu, 25 April 2013 10:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> I'm still having trouble to get the Angstrom symbol to show up properly on the PS/PDF output using Device Fonts (!P.FONT=0). I can achieve that if I set !P.FONT=1 just before the text command (I'm using CGTEXT), but the output will be quite different from what I'm using throughout the paper.
>
> If I try to use the lower case Angstrom, everything is just fine, as one can see in this figure:
>
> https://dl.dropboxusercontent.com/u/6573328/Angstrom_lowerca se.png
>
> However, if I want to use the upper case Angstrom, which is the correct one, I think there is no room for the small circle to show up in the output for some reason that I don't know. See this figure:
>
> https://dl.dropboxusercontent.com/u/6573328/Angstrom_upperca se.png
>
> Is there any way of setting the size of the text window?

I think it is more likely that this particular hardware font doesn't
support the Angstrom sign properly. Fonts are notorious for not being in
compliance with standards. True-type fonts are better in this regard
because they are usually more "modern."

I find it hard to believe, however, that you can't find a true-type font
to match the font in your paper. What kind of font are you using?

In any case, when device independence became my goal, I switched from
hardware to true-type fonts and never looked back.

There is no way to set the text "window size" as far as I know. And I
doubt very much it would help in this situation anyway.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Anstrom symbol not showing up on PS output
Next Topic: Re: How to calculate the slope of a line in a graph ?

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

Current Time: Wed Oct 08 13:48:45 PDT 2025

Total time taken to generate the page: 0.00635 seconds