# 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
{"ft_lang_label":"__label__en","ft_lang_prob":0.77649295,"math_prob":0.8469673,"size":1500,"snap":"2019-35-2019-39","text_gpt3_token_len":517,"char_repetition_ratio":0.11564171,"word_repetition_ratio":0.17982456,"special_character_ratio":0.33333334,"punctuation_ratio":0.09589041,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99045354,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-17T08:40:44Z\",\"WARC-Record-ID\":\"<urn:uuid:00a7017f-95f5-4166-90e6-687445712b5b>\",\"Content-Length\":\"141766\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:066270d9-548b-4c59-a3f0-6adc127cc1c6>\",\"WARC-Concurrent-To\":\"<urn:uuid:8387247f-753e-49bc-bdba-5d6830dcb312>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://tex.stackexchange.com/questions/162950/how-to-transpose-or-mirror-xymatrix\",\"WARC-Payload-Digest\":\"sha1:JQ7YEXS4P73BCI2E3TR574UBQW2ROSCB\",\"WARC-Block-Digest\":\"sha1:CE64XYGMUQHFSNN4DW2NGXK3R42SRA2R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573065.17_warc_CC-MAIN-20190917081137-20190917103137-00081.warc.gz\"}"}