0

I got this matrix bellow :

\begin{tikzpicture}

  \matrix [nodes={fill=red!20,minimum size=15mm}]
  
{

    \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \node {31}; & \node {41}; & \node{13};\\
    \node {14}; & \node{5}; & \node {37}; &\node {9}; & \node{36}; & \node {25}; & \node {1}; & \node{34};\\
    \node {34}; & \node{34}; & \node {20}; &\node {9}; & \node{19}; & \node {19}; & \node {3}; & \node{34};\\
  };

\end{tikzpicture}

And I wannt to choose some cells and color them with green

3
  • 1
    what about \node[fill=green]{};?
    – Sigur
    Sep 1 at 22:16
  • Or row 3/.style={nodes={fill=blue}} and row 2 column 4/.style={nodes={fill=red}} to give just some ideas. Sep 1 at 22:50
  • Thank you! It worked!
    – GeissonB
    Sep 2 at 0:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy