Skip to content

Commit

Permalink
"improved" colors given in the codeexample of pull request pgf-tikz…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo-Gul authored and hmenke committed Jun 15, 2020
1 parent 8d664f9 commit 58ca437
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ \subsubsection{Cell Styles and Options}
\begin{codeexample}[preamble={\usetikzlibrary{matrix,shapes.misc}}]
\begin{tikzpicture}
[mycol/.style={column #1/.append style={
every even row/.style={nodes={fill=gray!10}}}
every even row/.style={nodes={fill=gray!20}}}
}]

\matrix [matrix of nodes, nodes in empty cells,
Expand All @@ -494,11 +494,11 @@ \subsubsection{Cell Styles and Options}
mycol/.list={1,...,5}, % add mycol style to all cols
column 1/.style={
row 1 column 1/.style={nodes={fill=none, draw=none}},
nodes={fill=yellow, chamfered rectangle, inner sep=0,
nodes={fill=yellow!75!black, chamfered rectangle, inner sep=0,
chamfered rectangle corners={north west, south east}},
},
row 1/.style={nodes={text depth=0.2ex, text width=2cm, text=white}},
column 2/.append style={row 1/.append style={nodes={fill=green}}},
column 2/.append style={row 1/.append style={nodes={fill=green!75!black}}},
column 3/.append style={every even row/.style={nodes={fill=red!10}},
row 1 column 3/.append style={nodes={fill=red}}
},
Expand All @@ -521,7 +521,6 @@ \subsubsection{Cell Styles and Options}
\end{tikzpicture}
\end{codeexample}


The order in which these styles are applied is configurable. You can also
install your own styles. The following styles (in fact, internally they are
|/.code| keys) wrap the styles introduced in the previous paragraph passing the
Expand Down

0 comments on commit 58ca437

Please sign in to comment.