I would like to have the sloped label long expression for both arrows on the diagonal of my tikz-picture to be parallel to the arrows' direction. By using a longer sloped argument for the Fourier transform, I get this undesidered output, see Fig. 1. The text crosses the arrow in a bad way. Furthermore, I would like both arrows to be distinguishable and spaced in my tikz-picture, like in Fig. 2 and not to overlap. This might be the source of the wrong output.
Here my MWE:
\documentclass[tikz,border=2mm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[xscale=6.5,yscale=4.5]
\def\is{2.0} % inner seperation of nodes
% NODES
\node[inner sep=\is] (hh) at (0,1) {$h(t,\tau)$};
\node[inner sep=\is] (SS) at (0,0) {$S(\nu,\tau)$};
\node[inner sep=\is] (HH) at (1,1) {$H(t,f)$};
\node[inner sep=\is] (BB) at (1,0) {$B(\nu,f)$};
% ARROWS
\draw[-latex] (hh) -- (HH) node[fill=white,inner sep=3pt,midway, scale=0.9] {$\mathcal{F}$};
\draw[-latex] (HH) -- (BB) node[fill=white,inner sep=3pt,midway, scale=0.9] {$\mathcal{F}$};
\draw[-latex] (hh) -- (SS) node[fill=white,inner sep=3pt,midway, scale=0.9] {$\mathcal{F}$};
\draw[-latex] (SS) -- (BB) node[fill=white,inner sep=3pt,midway, scale=0.9] {$\mathcal{F}$}; % Bad output starts below
\draw[-latex] (SS) -- (HH) node[midway, sloped, above, scale=0.9] {$\mathcal{F}\{long-expression\}$};
\draw[-latex] (HH) -- (SS) node[midway, sloped, below, scale=0.9] {$\mathcal{F}^{-1}\{long-expression\}$};
\end{tikzpicture}
\end{document}




x=6.5cm, y=4.5cm. Or just use a matrix/tikz-cd with the appropriate settings depending on what you're after. – Qrrbrbirlbel Jul 09 '23 at 23:37