Discussion:
Parallel and Perpendicular symbols in IDL 8 New Graphics.
(too old to reply)
Xin Tao
2013-06-04 06:32:33 UTC
Permalink
Dear all,

I'm using IDL NG, but I don't know how to put symbols like "perpendicular" (upside down T) and "parallel" (||) in annotations. In DG, I can do it, although not in a straightforward way. Is there an easy way to add those two symbols as subscripts in NG? Thanks.

Xin
alx
2013-06-04 08:45:39 UTC
Permalink
Post by Xin Tao
Dear all,
I'm using IDL NG, but I don't know how to put symbols like "perpendicular" (upside down T) and "parallel" (||) in annotations. In DG, I can do it, although not in a straightforward way. Is there an easy way to add those two symbols as subscripts in NG? Thanks.
Xin
You can use the "DejaVuSans" TrueType font, if you have IDL 8.2
alx.
Paul van Delst
2013-06-04 12:24:57 UTC
Permalink
IDL> w=window()
IDL> p=text(0.3, 0.5,'$\bot$',font_size=20)
IDL> p=text(0.7, 0.5,'$\parallel$',font_size=20)

Subscripts follows the same latex format:

IDL> p=text(0.3, 0.2,'Hello$_\bot$',font_size=20)
IDL> p=text(0.7, 0.2,'there$_\parallel$',font_size=20)

For some reason IDL uses "\bot" rather than "\perp" for the
perpendicular symbol. Huh.

cheers,

paulv
Post by Xin Tao
Dear all,
I'm using IDL NG, but I don't know how to put symbols like
"perpendicular" (upside down T) and "parallel" (||) in annotations.
In DG, I can do it, although not in a straightforward way. Is there
an easy way to add those two symbols as subscripts in NG? Thanks.
Xin
Xin Tao
2013-06-05 05:17:21 UTC
Permalink
Thank you very much, Paul and alx! I thought IDL 8 followed LaTeX and I kept trying \perp and \| for those symbols.

Xin
Post by Paul van Delst
IDL> w=window()
IDL> p=text(0.3, 0.5,'$\bot$',font_size=20)
IDL> p=text(0.7, 0.5,'$\parallel$',font_size=20)
IDL> p=text(0.3, 0.2,'Hello$_\bot$',font_size=20)
IDL> p=text(0.7, 0.2,'there$_\parallel$',font_size=20)
For some reason IDL uses "\bot" rather than "\perp" for the
perpendicular symbol. Huh.
cheers,
paulv
Post by Xin Tao
Dear all,
I'm using IDL NG, but I don't know how to put symbols like
"perpendicular" (upside down T) and "parallel" (||) in annotations.
In DG, I can do it, although not in a straightforward way. Is there
an easy way to add those two symbols as subscripts in NG? Thanks.
Xin
Haje Korth
2013-07-18 14:35:28 UTC
Permalink
Thank you, Paul. The \bot I would have never guessed! Haje
Post by Paul van Delst
IDL> w=window()
IDL> p=text(0.3, 0.5,'$\bot$',font_size=20)
IDL> p=text(0.7, 0.5,'$\parallel$',font_size=20)
IDL> p=text(0.3, 0.2,'Hello$_\bot$',font_size=20)
IDL> p=text(0.7, 0.2,'there$_\parallel$',font_size=20)
For some reason IDL uses "\bot" rather than "\perp" for the
perpendicular symbol. Huh.
cheers,
paulv
Post by Xin Tao
Dear all,
I'm using IDL NG, but I don't know how to put symbols like
"perpendicular" (upside down T) and "parallel" (||) in annotations.
In DG, I can do it, although not in a straightforward way. Is there
an easy way to add those two symbols as subscripts in NG? Thanks.
Xin
Loading...