I am trying to use relative coordinate with notation ++(x,y)
which usually works fine. But in the example below it doesn't. I would like to define the node relative the center of a matrix, which I did at the end of the code below \node [font=\color{blue}] at (m.center)++(1,-3) {$4$};
I thought this would work but it doesn't. If this line is deleted everything is fine. How can I do this?
\documentclass[border=10pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix,fit}
\begin{document}
\begin{tikzpicture}
\matrix(m) [matrix of math nodes, nodes in empty cells, nodes={minimum size=1cm, outer sep=0pt, text height=1.5ex, text depth=.25ex}]
{
7 & & 4 & \\
& & & \\
8 & & 3 & \\
& & & \\
};
\draw (m-1-1.north west) rectangle (m-4-4.south east);
\foreach \i in {2,4} {
\draw (m-\i-1.south west) -- (m-\i-4.south east);
}
\foreach \j in {2,4} {
\draw (m-1-\j.north east) -- (m-4-\j.south east);
}
% dual ui
\node [font=\color{blue}] at (3,1) {$5$};
\node [font=\color{blue}] at (3,-1) {$6$};
% dual vj
\node [font=\color{blue}] at (-1,-3) {$14$};
% \node [font=\color{blue}] at (1,-3) {$4$};
% Testing new notation
\node [font=\color{blue}] at (m.center) {$4$};
% This last line is not valid for some reason
\node [font=\color{blue}] at (m.center)++(1,-3) {$4$};
\end{tikzpicture}
\end{document}
\node [font=\color{blue}] at ([shift={(1,-3)}]m.center) {$4$};
.