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

Home » Public Forums » archive » Re: 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
Re: Anstrom symbol not showing up on PS output [message #84012] Wed, 24 April 2013 11:31 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> Don't ask me why, but now I can get the Angstrom symbol to be displayed correctly in the output (same PS/PDF viewer).

Oh, I read this incorrectly. Now the Angstrom symbol shows up!
I'm pretty sure mental telepathy is involved. :-)

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 #84013 is a reply to message #84012] Wed, 24 April 2013 11:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> Don't ask me why, but now I can get the Angstrom symbol to be displayed correctly in the output (same PS/PDF viewer).

I won't ask, then. :-)

Cheers,

David

P.S. Have you thought about a different Postscript viewer?


--
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 #84014 is a reply to message #84013] Wed, 24 April 2013 11:17 Go to previous messageGo to next message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Just an update:

Since I needed to include a bar scale in the output plots, I included the following line in my code:

oplotscale, -0.5, 1, 0.5, '1175 A.U.',$
color=cgcolor('white'),$
charsize=0.6,$
thick=5, /above

This is an external procedure that I just downloaded from here:

http://www.cita.utoronto.ca/~tchang/gbt/procs/gen/image/oplo tscale.pro

Don't ask me why, but now I can get the Angstrom symbol to be displayed correctly in the output (same PS/PDF viewer).

Best regards!

m.
Re: Anstrom symbol not showing up on PS output [message #84015 is a reply to message #84014] Wed, 24 April 2013 11:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> Actually, I did that already (I read your post on that)... the only thing I've got by turning the anti-aliasing in my PDF viewer (BTW, I'm using Skim) is ugly fonts.
>
> I think I've tried everything... guess I'll have to write the word 'Angstrom' instead of the symbol...

Did you try printing it on a PostScript printer. I think it will be
fine. :-)

In any case, the code you gave us shows the Angstrom symbol looking
"correct" both in my PostScript and PNG files. Because you mention PDF,
I tried that, too. It looks OK, except that the little circle is
touching the A in the PDF file. You can still tell what it is, though.

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 #84016 is a reply to message #84015] Wed, 24 April 2013 10:55 Go to previous messageGo to next message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Hi David,

Thanks for the quick response.

Actually, I did that already (I read your post on that)... the only thing I've got by turning the anti-aliasing in my PDF viewer (BTW, I'm using Skim) is ugly fonts.

I think I've tried everything... guess I'll have to write the word 'Angstrom' instead of the symbol...

m.
Re: Anstrom symbol not showing up on PS output [message #84017 is a reply to message #84016] Wed, 24 April 2013 10:37 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> 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.

This is clearly a PostScript viewer program, not a PostScript file
problem. For one thing, the only way for something to show up correctly
in the PNG file is for it to exist (correctly!) in the PostScript file,
since the PNG file is made from the PostScript file.

My guess is that if you turned anti-aliasing off in your PostScript
viewer the Angstrom symbol would show up correctly, as if you were using
the powers of mental telepathy. :-)

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 #84075 is a reply to message #84012] Thu, 25 April 2013 10:12 Go to previous message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Dear all,

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?

Thank you.

m.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA
Next Topic: Anstrom symbol not showing up on PS output

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

Current Time: Wed Oct 08 15:57:35 PDT 2025

Total time taken to generate the page: 0.00925 seconds