Skip to main content
added 613 characters in body
Source Link
Verbeia
  • 34.5k
  • 10
  • 111
  • 234

Something like this?

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Style[Text[#], Large]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All] 

enter image description here

Of course you can place the Text and style to taste. Here is a slightly more complex version:

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Inset[Text[ Style[NumberForm[#, {3, 3}], Large, FontFamily -> "Franklin Gothic"]], Scaled[{0.8, 0.5}]]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All, FrameStyle -> Directive[GrayLevel[0.9]], Spacings -> 0] 

enter image description here

It would be straightforward to create a function that took a matrix of numbers and generated this.

Something like this?

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Style[Text[#], Large]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All] 

enter image description here

Of course you can place the Text and style to taste.

Something like this?

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Style[Text[#], Large]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All] 

enter image description here

Of course you can place the Text and style to taste. Here is a slightly more complex version:

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Inset[Text[ Style[NumberForm[#, {3, 3}], Large, FontFamily -> "Franklin Gothic"]], Scaled[{0.8, 0.5}]]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All, FrameStyle -> Directive[GrayLevel[0.9]], Spacings -> 0] 

enter image description here

It would be straightforward to create a function that took a matrix of numbers and generated this.

Source Link
Verbeia
  • 34.5k
  • 10
  • 111
  • 234

Something like this?

Grid[Map[Graphics[{GrayLevel[0.8], Rectangle[Scaled[{0, 0}], Scaled[{#, 1}]], Black, Style[Text[#], Large]}, AspectRatio -> 0.2] &, RandomReal[{0, 1}, {4, 3}], {2}], Frame -> All] 

enter image description here

Of course you can place the Text and style to taste.