The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: automatic grid
Replies: 1   Last Post: Jun 22, 2013 8:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
David Park

Posts: 1,560
Registered: 5/19/07
Re: automatic grid
Posted: Jun 22, 2013 8:40 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

veamos1 = {"V1", "V2", "V3", "V4"};
veamos2 = {5, 20, 7, 11};
Grid[{veamos1, veamos2}] /.
n_Integer?(# > 10 &) :> Item[n, BaseStyle -> {FontColor -> Red}]

David Park

From: Francisco Gutierrez []

Dear Group:
I have a grid (in reality, a collection of grids) and would like to make
Mathematica give each entry of the grid a style depending on its value.
For example:
Aveamos1= {"V1","V2",V3", "V4"}
Suppose that I want any value above 10 to be coloured in red. How can I
manage to do this?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.