MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Successive words in different colors?


Plot[x, {x, 0, 4},
    Epilog -> {Text[
          SequenceForm[
            StyleForm["T", FontColor -> Red],
            StyleForm["ext", FontColor -> Blue]],
          {1, 2}]}];


Bob Hanlon

> 
> From: AES/newspost <siegman at stanford.edu>
To: mathgroup at smc.vnet.net
> Date: 2004/12/09 Thu PM 08:22:57 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg52718] [mg52694] Successive words in different colors?
> 
> How to put words or extended text strings into a Prolog or Epilog, 
> preferably using just one single Text[---] command, but with successive  
> words or sub-strings displayed in different colors?  
> 
> (Using "Graphics`Colors`" for the colors, and occasional \n carriage 
> returns within or between the substrings)
> 
> 


  • Prev by Date: Re : Reduce[] in version 5.1
  • Next by Date: Re: Newbie Question -- Plot3d::plnc
  • Previous by thread: Re: Successive words in different colors?
  • Next by thread: Newbie Question -- Plot3d::plnc