tensor-diagram.tex 930 B

123456789101112131415161718192021222324252627
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shapes, calc, shapes, arrows, decorations.markings}
  4. \usepackage{amsmath,amssymb}
  5. \usepackage{xcolor}
  6. \definecolor{xvectorcolor}{HTML}{77933C}
  7. \begin{document}
  8. \begin{tikzpicture}[font=\boldmath]
  9. \large
  10. % Points
  11. \node (A) at (0,2) {$X \times Y$};
  12. \node (B) at (4,2) {$Z'$};
  13. \node (C) at (2,0) {$Z$};
  14. \draw[->, ultra thick] (2.1,0.7) arc(-70:260:0.4);
  15. % Draw the triangle
  16. \path[fill=blue!10, fill=blue!5] (A) -- (B) -- (C) -- (A);
  17. \draw[ultra thick, xvectorcolor, arrows={-latex}] (A) -- (C) node[sloped,midway,below=-0.1cm] {$T$};
  18. \draw[ultra thick, blue!80, arrows={-latex}] (C) -- (B) node[sloped,midway,below=-0.1cm] {$f$};
  19. \draw[ultra thick, red!80, arrows={-latex},line cap=round] (A) -- (B) node[sloped,midway,right=-0.3cm,above=-0.1cm] {$T'$};
  20. \end{tikzpicture}
  21. \end{document}