MathGroup Archive 2008

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

Search the Archive

Re: Color coding a Table entry

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92800] Re: Color coding a Table entry
  • From: Yves Klett <yves.klett at googlemail.com>
  • Date: Mon, 13 Oct 2008 07:05:38 -0400 (EDT)

AES,

you could use Style in many different ways, e.g.

Table[If[i < 0, Style[i, Red], Style[i, Green]], {i, -5, 5}]

Regards,
Yves


AES schrieb:
> I'm Printing (to the screen) a Table like, let's say,
> 
>    Table[{f1, f2, f3}, (x, xmin, xmax}]
> 
> and anytime the value of f2 goes negative I want that value printed in 
> Red.
> 
> What's a simple, compact way to code this?
> 




  • Prev by Date: Re:mathematica and CGT
  • Next by Date: Re: ContourPlot3d labels
  • Previous by thread: Re: Re: Color coding a Table entry
  • Next by thread: RE: Re: Re: genetic algorithms