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

Home » Public Forums » archive » Re: Greek font in ytitle ?
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: Greek font in ytitle ? [message #49921] Tue, 29 August 2006 10:21
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dilkushi@gmail.com writes:

> 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.")
Re: Greek font in ytitle ? [message #49922 is a reply to message #49921] Tue, 29 August 2006 10:09 Go to previous message
Dilkushi@gmail.com is currently offline  Dilkushi@gmail.com
Messages: 21
Registered: August 2006
Junior Member
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


David Fanning wrote:

> Dilkushi@gmail.com writes:
>
>> 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.")
Re: Greek font in ytitle ? [message #49925 is a reply to message #49922] Tue, 29 August 2006 08:30 Go to previous message
David Box is currently offline  David Box
Messages: 1
Registered: August 2006
Junior Member
Gianguido Cianci wrote:
> Dilkushi@gmail.com wrote:
>> 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/fi lelist.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
Re: Greek font in ytitle ? [message #49926 is a reply to message #49925] Tue, 29 August 2006 06:54 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Dilkushi@gmail.com wrote:
> 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/fi lelist.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
Re: Greek font in ytitle ? [message #49928 is a reply to message #49926] Mon, 28 August 2006 16:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dilkushi@gmail.com writes:

> 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.")
Re: Greek font in ytitle ? [message #49929 is a reply to message #49928] Mon, 28 August 2006 16:09 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
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

Dilkushi@gmail.com wrote:
> I found texttoidl
> but it stops half way through
> d
>
Re: Greek font in ytitle ? [message #49930 is a reply to message #49929] Mon, 28 August 2006 15:51 Go to previous message
Dilkushi@gmail.com is currently offline  Dilkushi@gmail.com
Messages: 21
Registered: August 2006
Junior Member
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


David Fanning wrote:

> Dilkushi@gmail.com writes:
>
>> 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.")
Re: Greek font in ytitle ? [message #49931 is a reply to message #49930] Mon, 28 August 2006 15:45 Go to previous message
Dilkushi@gmail.com is currently offline  Dilkushi@gmail.com
Messages: 21
Registered: August 2006
Junior Member
I found texttoidl
but it stops half way through
d

Gianguido Cianci wrote:

> 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
>
> Dilkushi@gmail.com wrote:
>> Hello all
>> I need to include 'delta' (as a Greek letter) as my ytitle..
>> please keep me posted
>> thanks
>> dilkushi
Re: Greek font in ytitle ? [message #49932 is a reply to message #49931] Mon, 28 August 2006 15:28 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
google 'textoidl' and you get:

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

it's that easy :-)

Gianguido

Dilkushi@gmail.com wrote:
> Gianguido
> from where can i find textoidl.pro ?
>
>
>
> Gianguido Cianci wrote:
>
>> 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
>>
>> Dilkushi@gmail.com wrote:
>>> Hello all
>>> I need to include 'delta' (as a Greek letter) as my ytitle..
>>> please keep me posted
>>> thanks
>>> dilkushi
Re: Greek font in ytitle ? [message #49933 is a reply to message #49932] Mon, 28 August 2006 15:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dilkushi@gmail.com writes:

> 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.")
Re: Greek font in ytitle ? [message #49934 is a reply to message #49933] Mon, 28 August 2006 15:20 Go to previous message
Dilkushi@gmail.com is currently offline  Dilkushi@gmail.com
Messages: 21
Registered: August 2006
Junior Member
Gianguido
from where can i find textoidl.pro ?



Gianguido Cianci wrote:

> 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
>
> Dilkushi@gmail.com wrote:
>> Hello all
>> I need to include 'delta' (as a Greek letter) as my ytitle..
>> please keep me posted
>> thanks
>> dilkushi
Re: Greek font in ytitle ? [message #49935 is a reply to message #49934] Mon, 28 August 2006 14:33 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
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

Dilkushi@gmail.com wrote:
> Hello all
> I need to include 'delta' (as a Greek letter) as my ytitle..
> please keep me posted
> thanks
> dilkushi
Re: Greek font in ytitle ? [message #49936 is a reply to message #49935] Mon, 28 August 2006 12:24 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dilkushi@gmail.com writes:

> 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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Read Zipped files
Next Topic: JHU/APL/S1R IDL Library update.

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

Current Time: Wed Oct 08 15:55:44 PDT 2025

Total time taken to generate the page: 0.00802 seconds