Discussion:
Greek font in ytitle ?
(too old to reply)
D***@gmail.com
2006-08-28 18:54:37 UTC
Permalink
Hello all
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
thanks
dilkushi
David Fanning
2006-08-28 19:24:46 UTC
Permalink
Post by D***@gmail.com
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
Ten-four. Or, rather, !4:

IDL> text = 'This is a delta symbol (!4' + String("144B) + '!X)'
IDL> xyouts, 0.5, 0.5, /normal, size=2.0, align=0.5, text

You can learn about the details here:

http://www.dfanning.com/ographics_tips/greek.html

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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
D***@gmail.com
2006-08-29 17:09:58 UTC
Permalink
Dear all
I did it the conventional way
I think the font was set to something else.. this works fine... see the
following..
I used Dr. Fanning's example
I really appreciate your help and time..
Nice to know that people care..
God bless you all
dilkushi


SET_PLOT, 'PS'
!P.font=4

DEVICE, FILENAME='fontnew.ps'


str = 'This is the Delta character: (!9' + String("144B) + '!X)'
xyouts, 0.6, 0.6, /normal, size=2.0, align=0.5, str
DEVICE, /CLOSE
end
Post by David Fanning
Post by D***@gmail.com
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
IDL> text = 'This is a delta symbol (!4' + String("144B) + '!X)'
IDL> xyouts, 0.5, 0.5, /normal, size=2.0, align=0.5, text
http://www.dfanning.com/ographics_tips/greek.html
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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
David Fanning
2006-08-29 17:21:08 UTC
Permalink
Post by D***@gmail.com
I did it the conventional way
I think the font was set to something else.. this works fine... see the
following..
I used Dr. Fanning's example
I really appreciate your help and time..
Nice to know that people care..
God bless you all
dilkushi
SET_PLOT, 'PS'
!P.font=4
As far as I know, !P.FONT can have one of three values: -1, 0, and 1.
But, hey, whatever works, I say. :-)

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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
Gianguido Cianci
2006-08-28 21:33:18 UTC
Permalink
You can also search in the group or elsewhere for the fantastic
textoidl.pro. If you know a little tex you can do a lot quite easily
with it.

ytitle=textoidl('\delta')

or

ytitle=textoidl('\Delta')

Gianguido
Post by D***@gmail.com
Hello all
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
thanks
dilkushi
D***@gmail.com
2006-08-28 22:20:05 UTC
Permalink
Gianguido
from where can i find textoidl.pro ?
Post by Gianguido Cianci
You can also search in the group or elsewhere for the fantastic
textoidl.pro. If you know a little tex you can do a lot quite easily
with it.
ytitle=textoidl('\delta')
or
ytitle=textoidl('\Delta')
Gianguido
Post by D***@gmail.com
Hello all
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
thanks
dilkushi
David Fanning
2006-08-28 22:26:36 UTC
Permalink
Post by D***@gmail.com
from where can i find textoidl.pro ?
Dilkushi reports that the !4 trick didn't work for him
at all, so I doubt that TexToIDL will help either, since
that is just an indirect way of doing exactly the same
thing. You can find it here:

http://physweb.mnstate.edu/mcraig/textoidl/

The real question is why isn't it working on your
machine and with your version of IDL. I don't have
many ideas about that! :-(

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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
D***@gmail.com
2006-08-28 22:51:28 UTC
Permalink
David
I am using IDL ver 6.2
and when i run
IDL>ytitle=textoidl('\Delta')
i get this error

Variable is undefined: STRTRANS.
Error occurred at: TEXTOIDL

:(
sob sob
dilkushi
Post by David Fanning
Post by D***@gmail.com
from where can i find textoidl.pro ?
Dilkushi reports that the !4 trick didn't work for him
at all, so I doubt that TexToIDL will help either, since
that is just an indirect way of doing exactly the same
http://physweb.mnstate.edu/mcraig/textoidl/
The real question is why isn't it working on your
machine and with your version of IDL. I don't have
many ideas about that! :-(
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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
David Fanning
2006-08-28 23:18:02 UTC
Permalink
Post by D***@gmail.com
I am using IDL ver 6.2
and when i run
IDL>ytitle=textoidl('\Delta')
i get this error
Variable is undefined: STRTRANS.
Error occurred at: TEXTOIDL
:(
sob sob
Well, it's going to get worse. We haven't even
tried to write a program yet. :-(

Sounds to me like you either didn't get all the files
you need, or you didn't put the files that you did
get on the IDL PATH so they can be found when they
are needed. This is all pretty basic stuff. Anyone
around there know enough IDL to help?

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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
Gianguido Cianci
2006-08-29 13:54:23 UTC
Permalink
Post by D***@gmail.com
David
I am using IDL ver 6.2
and when i run
IDL>ytitle=textoidl('\Delta')
i get this error
Variable is undefined: STRTRANS.
Error occurred at: TEXTOIDL
Did you download all the files at
http://physweb.mnstate.edu/mcraig/textoidl/textoidl-2-1-2/filelist.htm
?

if so, you might want to restart your idl or .run strtrans and any
other file that is not found.

the first time you run textoidl on a new idl session you should get the
following messages, proving that all the supporting procedures are
found and usable.

% Compiled module: TEXTOIDL.
% Compiled module: TEXTABLE.
% Compiled module: STRTRANS.
% Compiled module: STRSPLIT.
% Compiled module: TRANSLATE_SUB_SUPER.
% Compiled module: NEXTTOK.

Give it a shot and let us know. Hope this helps,

Gianguido
David Box
2006-08-29 15:30:44 UTC
Permalink
Post by Gianguido Cianci
Post by D***@gmail.com
David
I am using IDL ver 6.2
and when i run
IDL>ytitle=textoidl('\Delta')
i get this error
Variable is undefined: STRTRANS.
Error occurred at: TEXTOIDL
Did you download all the files at
http://physweb.mnstate.edu/mcraig/textoidl/textoidl-2-1-2/filelist.htm
?
if so, you might want to restart your idl or .run strtrans and any
other file that is not found.
the first time you run textoidl on a new idl session you should get the
following messages, proving that all the supporting procedures are
found and usable.
% Compiled module: TEXTOIDL.
% Compiled module: TEXTABLE.
% Compiled module: STRTRANS.
% Compiled module: STRSPLIT.
% Compiled module: TRANSLATE_SUB_SUPER.
% Compiled module: NEXTTOK.
Give it a shot and let us know. Hope this helps,
Gianguido
dilkushi

Try this blog
http://www.students.ncl.ac.uk/a.j.mee/blog/index.php/2006/05/04/using-extended-characters-and-symbols-in-idl-plots/

The explanation there is pretty straight forward showing both in line
examples as well as referring to library additions such as textoidl

David
Gianguido Cianci
2006-08-28 22:28:01 UTC
Permalink
google 'textoidl' and you get:

http://physweb.mnstate.edu/mcraig/TeXtoIDL/

it's that easy :-)

Gianguido
Post by Gianguido Cianci
Gianguido
from where can i find textoidl.pro ?
Post by Gianguido Cianci
You can also search in the group or elsewhere for the fantastic
textoidl.pro. If you know a little tex you can do a lot quite easily
with it.
ytitle=textoidl('\delta')
or
ytitle=textoidl('\Delta')
Gianguido
Post by D***@gmail.com
Hello all
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
thanks
dilkushi
D***@gmail.com
2006-08-28 22:45:35 UTC
Permalink
I found texttoidl
but it stops half way through
d
Post by Gianguido Cianci
You can also search in the group or elsewhere for the fantastic
textoidl.pro. If you know a little tex you can do a lot quite easily
with it.
ytitle=textoidl('\delta')
or
ytitle=textoidl('\Delta')
Gianguido
Post by D***@gmail.com
Hello all
I need to include 'delta' (as a Greek letter) as my ytitle..
please keep me posted
thanks
dilkushi
Gianguido Cianci
2006-08-28 23:09:03 UTC
Permalink
Hi Dilkushi,

as a general rule, when asking for help it is good to give quite a few
more details (as many as are pertinent)! and avoid vague phrases such
as 'half way through' :-(

What version of IDL are you using, on what OS... a sample input and
sample error message are also useful.

G
Post by D***@gmail.com
I found texttoidl
but it stops half way through
d
Loading...