# How to transpose or mirror xymatrix?

I know that it is possible to rotate \xymatrix (using e.g. \xymatrix@d) but how to transpose or mirror it?

• Do you mean mirroring it keeping text not mirrored? – karlkoeller Feb 28 '14 at 18:38
• @karlkoeller: Yes, I mean logical mirroring like logical rotating with \xymatrix@d rather than "mechanical" mirroring. – user87690 Feb 28 '14 at 18:43
• I'm not aware of any option to do that. – karlkoeller Feb 28 '14 at 18:44

In tikz-cd you can mirror your diagrams by giving negative values to the row and column separators:

% arara: pdflatex

\documentclass{article}
\usepackage{tikz-cd}

\begin{document}
$\begin{tikzcd} A \arrow{r}{\phi}& B\arrow{d}{\psi} \\ C \arrow{u}{\eta} & D \arrow{l}{\mu} \end{tikzcd}$
$\begin{tikzcd}[column sep=-14ex, every arrow/.append style={swap}] A \arrow{r}{\phi}& B\arrow{d}{\psi} \\ C \arrow{u}{\eta} & D \arrow{l}{\mu} \end{tikzcd}$
$\begin{tikzcd}[row sep=-11ex, every arrow/.append style={swap}] A \arrow{r}{\phi}& B\arrow{d}{\psi} \\ C \arrow{u}{\eta} & D \arrow{l}{\mu} \end{tikzcd}$
\end{document}


• What about one value positive and the other negative? – egreg Apr 26 '15 at 10:18
• @egreg, I don't understand. Positive is the default. My first and second example are using the 'normal' value (5ex/6ex) – LaRiFaRi Apr 26 '15 at 16:44
• I was thinking to transposition – egreg Apr 26 '15 at 16:45
• @egreg I somehow have to switch x and y coordinates here. Don't know yet. Did you have something concrete in mind by this "one positive, one negative"? – LaRiFaRi Apr 27 '15 at 7:59
• I tried and with both values negative one (quite obviously) gets a central symmetry. So no transposition, unfortunately. Forget about it. – egreg Apr 27 '15 at 9:44