Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Successive words in different colors?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52759] Re: [mg52694] Successive words in different colors?
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 11 Dec 2004 05:23:53 -0500 (EST)
  • References: <200412100122.UAA18909@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I'm not sure about using one single Text command. If you are willing to do 
it in several parts, try this:

In[1]:=
Plot[Sin[x], {x, -Pi, Pi}, Epilog ->
    {Text["This is a ", {-2.3, 0.5},
      TextStyle -> {FontColor -> Hue[0.7]}],
     Text["very nice curve", {-1.1, 0.5},
      TextStyle -> FontColor -> Hue[1]]}];

Takes some labor to get words in their proper position, though.

Tomas Garza
Mexico City
----- Original Message ----- 
From: "AES/newspost" <siegman at stanford.edu>
To: mathgroup at smc.vnet.net
Subject: [mg52759] [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: power spectrum
  • Next by Date: Iteration of Initial Conditions for required Boundary Value with NDSolve
  • Previous by thread: Successive words in different colors?
  • Next by thread: Re: Successive words in different colors?