I'm trying to draw a 2 dimensional matrix, quite simple, nothing so fancy. The only thing I am trying extra is format the first row, (get red colored texts there) as per this code;
\usepackage{tikz}
\usetikzlibrary{matrix,backgrounds}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{center}
\begin{tikzpicture}
[ row 1/ .style={red}]
\matrix
{
\node{2}; & \node{3}; & \node{4}; & \node{4}; & \node{3}; \\
\node{0}; & \node{1}; & \node{2}; & \node{3}; & \node{4};\\
};
\end{tikzpicture}
\end{center}
\end{document}
I looked at some tikz documentation and it seems I have the required packages. But I am getting following error;
Code: Select all
Package pgfkeys error: I do not know the key 'tikz/ row 1/ .style, to which you passed red and I am going to ignore it.
Can I please get help on how to modify or format selected row/column of the matrix above. Help is appreciated.