이 그림을 더 나은 방법(도메인 간 매핑)으로 그리는 방법은 무엇입니까?

이 그림을 더 나은 방법(도메인 간 매핑)으로 그리는 방법은 무엇입니까?

나는 다음과 비슷한 것을 그리려고 노력하고 있습니다.

여기에 이미지 설명을 입력하세요

이것이 내가 지금까지 한 일입니다:

여기에 이미지 설명을 입력하세요

\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}

축선의 품질이나 축 레이블의 위치가 마음에 들지 않았습니다. 도면이 개선되면 감사하겠습니다.

답변1

이런 뜻인가요? arrows.meta새로운 화살표 팁 중 하나를 사용하려는 경우가 아니면 라이브러리가 꼭 필요한 것은 아닙니다 . 이 경우 -{Straight Barb[length=5pt,width=5pt]}로 교체하십시오 ->.

산출

여기에 이미지 설명을 입력하세요

암호

\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}

관련 정보