2

How can I draw this picture in tikz? I dont need exactly as the picture but a diagram which have these meaning. I started with this code by myself but not able to complete further

\begin{tikzpicture}
 \draw (0,0) rectangle (6,4);
 \draw (3,4) circle [x radius=0.1, y radius=0.1];
 \node at (3,2){y}; 

enter image description here

9

You can draw the picture you've posted easily. Simple approach is shown below and its output is

enter image description here

\documentclass[border={10pt}]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}

\begin{document}

\begin{tikzpicture}[thick,>=latex,->]

\begin{scope}
\clip(-5,2) rectangle (5,-5);

\draw[dashed] (0,0)  circle (4.24cm);
\filldraw[white] (-4.3,4.3) rectangle (4.3,0);
\draw[double distance=1.6mm] (0,0) -- (3,-3) node[midway,xshift=4mm,yshift=2mm]{$\ell$};
\draw[->] (3,-3) -- (3,-4.5) node[below]{$m\cdot g$};
\draw[->] (3,-3) -- (2.,-2.0) node[left,yshift=-3mm]{$F$};
\draw[fill=white] (-1.2,1.0) -- (-.5,0) arc(180:360:0.5) -- (1.2,1.0) -- cycle;
\draw[draw=black,fill=white] (0, 0) circle circle (.3cm);
\draw[draw=black,fill=white] (3,-3) circle circle (.3cm);
\draw[->] (.6,0) -- (2,0) node[below]{\texttt{x}};
\draw[->] (0,-.6) -- (0,-2) node[below]{\texttt{y}};
\draw[pattern=north east lines] (-1.4,1.3) rectangle (1.4,1);
\node at (.3,-.8) {$\varphi$};   
\end{scope}

\end{tikzpicture}
\end{document}
  • 1
    double circle? – ferahfeza Jan 26 '17 at 22:40
  • 1
    @ferahfeza, why you don't state your concern rather than playing puzzles? – CroCo Jan 27 '17 at 5:06
  • wowowowowowowowo!!! stunning – riemann Jan 27 '17 at 7:36
  • @CroCo : mathmode for x, y ? – AlexG Jan 27 '17 at 7:52
  • @AlexG, true but I've tried to draw what is in the picture. Personally, I will utilize math mode rather than texttt. – CroCo Jan 27 '17 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.