Re: Anstrom symbol not showing up on PS output [message #84012] |
Wed, 24 April 2013 11:31  |
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 #84014 is a reply to message #84013] |
Wed, 24 April 2013 11:17   |
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   |
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 #84017 is a reply to message #84016] |
Wed, 24 April 2013 10:37   |
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.")
|
|
|
|