%3F.png)
Ich versuche, etwas Ähnliches wie das hier zu zeichnen:
Dies habe ich bisher getan:
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}
\begin{document}
\begin{tikzpicture}
\draw plot [smooth cycle] coordinates {(5,0.25) (6,0.35) (6.5, 0.2) (7,0.5) (7,1.65) (6.5,2.75) (5.8,2.75) (5.3,1.45) (4.8,0.85) } node at (6,1.7) {$X$};
\path[->] (3.1,1.7) edge [bend left] node[above] {$f$} (5.0,1.7);
\draw plot [smooth cycle] coordinates {(1.0,.1)(1.5,.2)(2.8,.5)(2.9,1.5)(2.8,2.8)(1.4,2.5)(0.5,0.5)} node at (1.8,1.8) {$U$};
\coordinate (O) at (0,0,0);
\draw[thick,->] (O) -- (1,0,0) node[anchor=north east]{$u_2$};
\draw[thick,->] (O) -- (0,1,0) node[anchor=north west]{$u_3$};
\draw[thick,->] (O) -- (0,0,1) node[anchor=south]{$u_1$};
\coordinate (B) at (4,0,0);
\draw[thick,->] (B) -- (5,0,0) node[anchor=north east]{$x_2$};
\draw[thick,->] (B) -- (4,1,0) node[anchor=north west]{$x_3$};
\draw[thick,->] (B) -- (4,0,1) node[anchor=south]{$x_1$};
\end{tikzpicture}
\end{document}
Mir gefiel weder die Qualität der Achsenlinien noch die Position der Achsenbeschriftungen. Jede Verbesserung der Zeichnung wäre willkommen.
Antwort1
Meinen Sie so etwas? Die arrows.meta
Bibliothek ist nicht unbedingt erforderlich, es sei denn, Sie möchten eine der neuen Pfeilspitzen verwenden. In diesem Fall ersetzen Sie -{Straight Barb[length=5pt,width=5pt]}
durch ->
.
Ausgabe
Code
\documentclass[margin=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
% axes
\coordinate (O) at (0,0,0);
\draw[thick,->] (O) -- (1,0,0) node[anchor=west]{$u_2$};
\draw[thick,->] (O) -- (0,1,0) node[anchor=south]{$u_3$};
\draw[thick,->] (O) -- (0,0,1) node[anchor=north east]{$u_1$};
\coordinate (B) at (4,0,0);
\draw[thick,->] (B) -- (5,0,0) node[anchor=west]{$x_2$};
\draw[thick,->] (B) -- (4,1,0) node[anchor=south]{$x_3$};
\draw[thick,->] (B) -- (4,0,1) node[anchor=north east]{$x_1$};
% plots
\draw plot [smooth cycle] coordinates {(1.0,.1)(1.5,.2)(2.8,.5)(2.9,1.5)(2.8,2.8)(1.4,2.5)(0.5,0.5)}
node[circle, fill=black, inner sep=1.5pt, label=below:$U$] (u) at (1.8,1.8) {};
\draw plot [smooth cycle] coordinates {(5,0.25) (6,0.35) (6.5, 0.2) (7,0.5) (7,1.65) (6.5,2.75) (5.8,2.75) (5.3,1.45) (4.8,0.85) }
node[circle, fill=black, inner sep=1.5pt, label=below:$X$] (x) at (6,1.7) {};
\draw[-{Straight Barb[length=5pt,width=5pt]}, dashed] (u) edge[out=-20, in=160] node[above] {$f$} (x);
\end{tikzpicture}
\end{document}