![이 예에 표시된 것처럼 tikz에서 실린더를 만드는 방법](https://rvso.com/image/327773/%EC%9D%B4%20%EC%98%88%EC%97%90%20%ED%91%9C%EC%8B%9C%EB%90%9C%20%EA%B2%83%EC%B2%98%EB%9F%BC%20tikz%EC%97%90%EC%84%9C%20%EC%8B%A4%EB%A6%B0%EB%8D%94%EB%A5%BC%20%EB%A7%8C%EB%93%9C%EB%8A%94%20%EB%B0%A9%EB%B2%95.png)
아래와 같이 유사한 그래픽을 만들고 싶지만 다른 텍스트를 사용하고 싶습니다.
방금 2D 그래픽을 만들었으니 Ti에서 이 작업을 수행하는 방법에 대한 시작 팁을 알려주실 수 있나요?케이지?
지금까지 완료되지 않은 MWE는 다음과 같습니다.
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes}
\begin{document}
\begin{tikzpicture}%
,>=latex
,latent/.style={%
,circle
,draw
,thick
,minimum size=10mm
}
%node section
\node (question) {Identify the issue and determine the question};
\node (plan) [below = of question] {Write plan for the review (protocol)};
\node (studies) [below = of plan] {Search for studies};
\fill[red] (0,-4) circle (0.25);
\fill[red] (1,-4.5) circle (0.25);
\fill[red] (-1.5,-4.5) circle (0.25);
\fill[green] (1,-5.5) circle (0.25);
\fill[green] (-1.5,-5.7) circle (0.25);
\fill[green] (-0.5,-5.8) circle (0.25);
\begin{scope}[]
\clip[draw] (0,-6) ellipse (2cm and 1cm);
\draw[step=0.3cm, black] (-2cm,-7cm) grid (2cm,1cm);
\end{scope}
%arrow section
\draw [->](question) to node[below] {} node[above] {} (plan);
\draw [->](plan) to node[below] {} node[above] {} (studies);
\end{tikzpicture}
\end{document}
답변1
이 답변은 funnel
적어도 현재로서는 대상에 초점을 맞출 것입니다.
변경사항:
- 깔때기 모양이 수정되었습니다.
- 하나의 문을 제거
\foreach
하고 이전 문에 포함했습니다. - 더 나은 노드 위치 지정.
산출
암호
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{pgfplots}
\definecolor{myellow}{RGB}{228,212,0}
\definecolor{mgreen}{RGB}{5,104,57}
\newcommand\funnel[3]{%
\pgfmathsetmacro\mwid{(2+\xi*.7)}
\pgfmathsetmacro\marc{\mwid-.4}
\begin{scope}[%
shift={(0,#1)},
line width=.05pt,
%x=5mm,
%scale=1.\xi,
yshift=\xi*12
]
\draw[black,bottom color=#2, top color=#2] (-\mwid,0) -- (-\mwid+.4,-1) arc (190:350:\marc cm and 5mm) -- (\mwid,0);
\draw[black,fill=#3] (0,0) ellipse (\mwid cm and 5mm);
\path (-\mwid,0) -- (-\mwid+.4,-1) coordinate[midway] (a\xi);
\end{scope}
}
\begin{document}
\begin{tikzpicture}%
latent/.style={%
,circle
,draw
,thick
,minimum size=10mm
}
%node section
\node (question) {Identify the issue and determine the question};
\node (plan) [below = of question] {Write plan for the review (protocol)};
\node (studies) [below = of plan] {Search for studies};
\begin{scope}
\clip[preaction={draw, green!40!black, very thick}] (0,-6) ellipse (2 and .5);
\draw[step=0.3cm, black] (-2cm,-7cm) grid (2cm,1cm);
\end{scope}
\fill[red] (0,-4) circle (0.25);
\fill[red] (1,-4.5) circle (0.25);
\fill[red] (-1.5,-4.5) circle (0.25);
\fill[green] (1,-5.5) circle (0.25);
\fill[green] (-1.5,-5.7) circle (0.25);
\fill[green] (-0.5,-5.8) circle (0.25);
%arrow section
\draw [->](question) to node[below] {} node[above] {} (plan);
\draw [->](plan) to node[below] {} node[above] {} (studies);
\foreach \text
[%
count=\xi starting from 0,
evaluate=\xi as \shadecolor using int(25*\xi),
evaluate=\xi as \coord using int(\xi-12)
]
in {%
Discuss and conclude\\overall findings,
Combine the data\\\tiny\itshape (synthesis or meta-analysis),
Assess the quality\\of the studies,
Extract data from the studies
}{%
\funnel{\coord}{mgreen!\shadecolor !myellow}{mgreen!\shadecolor !myellow}
\node[align=right, anchor=east, inner sep=10pt, font=\scriptsize, text width=2cm] at (a\xi) {\text};
}
\end{tikzpicture}
\end{document}