이 복잡한 심플렉스를 그리는 방법은 무엇입니까?

이 복잡한 심플렉스를 그리는 방법은 무엇입니까?

tikz를 사용하여 LaTex에서 다음 그림을 그리려고 하는데 그렇게 할 수 없습니다(솔직히 아직 멀었습니다...). 이것은 내가 필요한 수치입니다.

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

이것이 내가 지금까지 얻은 결과입니다(알고 있듯이 원하는 결과와는 거리가 멀습니다).

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

이것이 제가 시도를 하는 데 사용하는 MWE입니다.

\documentstyle{standalone}
\usepackage{tikz}

\begin{document}
\begin{figure}[H]
\centering
\begin{tikzpicture}
\draw (0,0) node[anchor=east]{$(0,1,0)$} -- (4,0) node[anchor=west]{$(1,0,0)$} -- (2,4) node[anchor=south]{$(0,0,1)$} -- cycle;
\end{tikzpicture}
\end{figure}
\end{document}

누구든지 내가 필요한 수치를 얻을 수 있도록 도와줄 수 있나요?

다들 감사 해요!

답변1

시작점으로 아래 코드를 시도해 보세요. 그림의 나머지 부분은 줄의 텍스트입니다. 으로 넣어보세요 \node.

\documentclass[margin=2cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,intersections,through,backgrounds,patterns}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (10,0);
\draw (A)node[below]{$(0,0,1)$} -- (B)node[below]{$(1,0,0)$} --++ (120:10)coordinate(C)node[above]{$(0,1,0)$} -- cycle;
\fill (A) circle (2pt);\fill (B) circle (2pt);\fill (C) circle (2pt);
\draw [name path=parallel](0,2.5)coordinate(Ap)--(10,2.5)coordinate(Bp);
\draw[name path=B--C] ($(B)!0.05!(C)!50mm!90:(C)$)coordinate(X1) -- ($(B)!0.95!(C)!50mm!90:(C)$)coordinate(X2);
\draw[name path=C--A] ($(C)!0.05!(A)!50mm!90:(A)$)coordinate(X3) -- ($(C)!0.95!(A)!50mm!90:(A)$)coordinate(X4);
\path [name intersections={of=parallel and B--C,by=E}];
\path [name intersections={of=parallel and C--A,by=F}];
\node [fill=red,circle,inner sep=1.5pt] at (E) {};
\node [fill=red,circle,inner sep=1.5pt] at (F) {};
\draw [name path=A--B] (A)--(B);
\path [name intersections={of=B--C and A--B,by=G}];
\node [fill=red,circle,inner sep=1.5pt] at (G) {};
\path [name intersections={of=C--A and A--B,by=H}];
\node [fill=red,circle,inner sep=1.5pt] at (H) {};
\path[pattern=vertical lines,pattern color=black] (E)--(F)--(H)--(G)--cycle;
\node [fill=white] at (5,2.2) {$C(v)$};
\foreach \i in {0.97,0.94,0.91}{
\draw[-latex] ( $ (Ap)!\i!(Bp) $ ) --++ (-90:0.75);}
\foreach \i in {0.03,0.06,0.09}{
\draw[-latex] ( $ (X1)!\i!(X2) $ ) --++ (30:0.75);}
\foreach \i in {0.03,0.06,0.09}{
\draw[-latex] ( $ (X3)!\i!(X4) $ ) --++ (150:0.75);}
\end{tikzpicture}
\end{document}

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

관련 정보