In a table, made with Tikz, I tried to make the first row darker than the rest by, I think, a little of brute force. It happens that the borders I want must be rounded and the extreme cells (north west, north east, south east and south west ones) are overring it as this image shows:
(The lighter cyan is a little hard to see, but yes, still overriding the border)
How to solve this problem? Here's my MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}[scale=.9]
\matrix[matrix of math nodes,minimum width=2.5cm,minimum height=6mm,column 1/.style={nodes={fill=cyan!7}}, column 2/.style={nodes={fill=cyan!7}}, row 1/.style={nodes={fill=cyan!45}}] (func) {
x & y = 2x + 1\\
-3&-5\\
-2&-3\\
-1&-1\\
0&1\\
1&3\\
2&5\\
3&7\\
};
\draw [rounded corners=5pt,thick] (func-1-1.north west) rectangle (func-8-2.south east);
\draw [thick] (func-1-1.south west) -- (func-1-2.south east);
\draw [thick] (func-1-1.north east) -- (func-8-1.south east);
\end{tikzpicture}
\end{document}


