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

Home » Public Forums » archive » Re: Re : Color Fonts?!?!?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Re : Color Fonts?!?!? [message #31844] Wed, 21 August 2002 19:24 Go to previous message
rmw092001 is currently offline  rmw092001
Messages: 17
Registered: January 2002
Junior Member
Reimar Bauer <R.Bauer@fz-juelich.de> wrote in message news:<ajv9o8$emlc$1@zam602.zam.kfa-juelich.de>...
> RichardW wrote:
>
> Dear Richard,
>
> there where much more posting about this. And you can write yourself
> a small procdure to make it easier.
>
> Number 15 from 2002-Apr-23
>
> tek_color
> text=['Dies',' ist',' ein',' Test']
> xyouts,0.5,0.5,text,color=[0,5,2,3,4]
>
> You need as much blanks as letters for each word.
> This could be done by strlen.

I forgot xyouts can use text arrays...
How about -

loadct,33
a=['Dies','ist','ein','Test']
xyouts,.1,.5,'.',charsize=-1 ; move the 'cursor', don't write anything
xyouts,a+' ',color=findgen(4)*80

it saves having to count the blank spaces :-)

>
> This is the address of the complete thread
> http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&am p;frame=right&th=a6e4907a12108490&seekm=Pine.LNX.4.3 3.0204171221180.1744-100000%40vglass.lanl.gov#link1
>
>
>> Hello,
>> I wanted to plot a string with words in different colors, and found
>> this thread from a few months ago (unfortunately google doesn't allow
>> to restart old newsgroup threads).
>
> Describe your statement a bit more. What did you mean by google doesn't
> allow to restart old newsgroup threads?
>
> I am able to read articles from 1991 (more than 10 years)
> http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&am p;threadm=271%40locke.water.ca.gov&rnum=61&prev=/gro ups%3Fq%3D1991%2Bgroup:comp.lang.idl-pvwave%26start%3D60%26h l%3Dde%26lr%3D%26ie%3DUTF-8%26selm%3D271%2540locke.water.ca. gov%26rnum%3D61
>

The option 'Post a follow-up to this message' disappears after a few months(?)
I can read the link above but not reply

> regards
>
> Reimar
>
>> But isn't there a much easier way -
>> loadct,33
>> a=['the',' quick',' brown',' fox',' jumped',' over',' the',' lazy','
>> dog']
>> xyouts,.1,.5,a(0),color=20
>> for i=1,8 do xyouts,a(i),color=20+i*25
>>
>> where XYOUTS remembers the last position if you don't give it x,y
>> values???? Anyway, just posting this so it's archived on google, in
>> case it's useful
>>
>> RW
>> =====
[Message index]
 
Read Message
Read Message
Previous Topic: Re: enscript (formatted color printing)
Next Topic: Re: From a novice in IDL

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

Current Time: Fri Oct 10 15:54:58 PDT 2025

Total time taken to generate the page: 1.03834 seconds