
지금까지 약간의 작업을 수행했지만 어떻게 해야 할지 잘 모르겠습니다. 특히 저는 아직 좌표계를 수행하는 방법을 잘 모르기 때문입니다. 아래쪽 원통에는 반경이 5.1CM btw임을 나타내는 화살표가 있습니다.
\begin{tikzpicture}
\draw [help lines] (0,0) grid (16,10);
\node [ anchor=south west, minimum width=20,minimum height=10] (Response) at (0,0) {};
\draw [draw=black, very thick] (0,8) rectangle (8,10);
\draw [draw=red, dashed, very thick] (3,8) rectangle (5,5);
\end{tikzpicture}
나는 좌표계를 정말로 이해하지 못한다. 어떻게 하면 더 잘 이해할 수 있나요?
답변1
이런 것들을 스스로 할 수 있도록 소소한 개념적 질문을 해보면 정말 좋을 것 같아요. 가장 어려운 부분은 스크린샷에서 내용을 해독하는 것입니다(일부는 잘못 읽었을 가능성이 높습니다).
\documentclass[tikz,border=3mm]{standalone}
\usepackage{siunitx}
\usetikzlibrary{arrows.meta,quotes,positioning,decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[m/.style={draw,minimum size=1.5em,label=right:$m$}]
\node[minimum width=9em,minimum height=3em,draw] (M) {$M=\SI{4.58}{\kilo\gram}$};
\draw[|-|] ([yshift=2ex]M.north west) -- node[fill=white]{$2R=\SI{27.5}{\centi\meter}$}
([yshift=2ex]M.north east);
\node[minimum width=2em,minimum height=3em,
path picture={
\draw[decoration={waves,radius=2em,segment length=3pt,pre length=0pt},decorate]
([yshift=2em]path picture bounding box.north) -- (path picture bounding box.south);
\draw ([xshift=\pgflinewidth/2]path picture bounding box.north west)
-- ([xshift=\pgflinewidth/2,yshift=3pt]path picture bounding box.south west)
([xshift=-\pgflinewidth/2]path picture bounding box.north east) --
([xshift=-\pgflinewidth/2,yshift=3pt]path picture bounding box.south east);
},below,label={[right]30:{$2r=\SI{5.1}{\centi\meter}$}}] (S) at (M.south){};
\draw ([xshift=0.5ex]S.south) |- ++ (-4em,-1ex) |- ++ (1ex,-1ex) -- ++ (0,1ex)
([xshift=-0.5ex]S.south) |- ++ (4em,-1ex) |- ++ (-1ex,-1ex) -- ++ (0,1ex);
\node[circle,draw,minimum size=1.5em,right=8em of S.south east] (C){};
\node[m,below=5em of C.east] (m1){};
\node[m,below=5em of m1] (m2){};
\draw[semithick] (m1) -- (C.east) arc[start angle=0,end
angle=90,radius=0.75em+0.5\pgflinewidth] --([yshift=0.5\pgflinewidth]C.north-|S.east);
\path[semithick,-Triangle,pos=0.9]
([yshift=0.5\pgflinewidth]C.north) edge ++ (-1,0)
(m1.center) edge["$T$"'] ++ (0,1)
(m1.center) edge["$m\,g$"] ++ (0,-1)
(m2.center) edge ++ (0,1)
(m2.center) edge ++ (0,-1);
\draw[|-|] ([xshift=-3em]m1.west) -- node[fill=white]
{$h=\SI{0.94}{\centi\meter}$} ([xshift=-3em]m2.west);
\end{tikzpicture}
\end{document}
앞으로는 다음을 수행하는 것이 좋습니다.시각적 검색비슷한 모양의 다이어그램으로 시작하면 많습니다. 그리고 코드의 일부 부분에 문제가 있는 경우 완전한 예제(조각이 아닌)를 게시하려고 노력하고 어떤 부분이 문제를 일으키는지 명확하게 표시하는 한 더 나은 반응을 얻을 수 있는 명확한 질문을 정의합니다.