-3

How can I create a graph of the forces acting on an object like the one in the picture? enter image description here

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}


\end{tikzpicture}
\end{document}
  • 3
    Like your question tex.stackexchange.com/questions/303502/… this shows no effort of research – user31729 Apr 17 '16 at 9:51
  • 3
    Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – Ruben Apr 17 '16 at 10:20
  • 2
    You really should try at least something. There are many examples online. If you Google 'force diagram TIkZ', the first result has what you want... – JP-Ellis Apr 17 '16 at 10:54
11

You could at least fake like you're trying..

enter image description here

\documentclass{standalone}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{patterns,calc}

\begin{document}
\begin{tikzpicture}
    \pattern[pattern=north east lines,thin] (0,0) rectangle (12,-.5    );
    \draw (0,0) -- (12,0);
    \draw[very thick] (3,0) rectangle +(6,3);
    \draw[very thick,blue,->] ($(6,1.5)+(.5,0)$) -- +(5,0) node[very near end,above] {$\bm F$};
    \draw[very thick,red,->] ($(6,1.5)+(-.5,0)$)-- +(-5,0) node[very near end,above] {$\bm F_d$};
    \draw[very thick,green,->] ($(6,1.5)+(0,.5)$)-- +(0,3) node[very near end,right] {$\bm F_n$};
    \draw[very thick,brown,->] ($(6,1.5)+(0,-.5)$) -- +(0,-3) node[very near end,right] {$\bm F_p$};
\end{tikzpicture}
\end{document}
1

Ok, for the first time help is needed. Enjoy

Output

\documentclass[border = 5mm]{standalone}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}[scale=1]
        \draw[dashed,black,fill=red!30, opacity=0.5] (-2,0) -- (2,0) -- (2,3) -- (-2,3) -- cycle;
        \draw[ultra thick,color=black] (-3,0) -- (3,0);
        \draw[thick,->,color=black] (.2,1.5) -- (2.5,1.5) node[above] {$F$};
        \draw[thick,->,color=black] (-.2,1.5) -- (-2.5,1.5) node[above] {$F_d$};
        \draw[thick,->,color=black] (0,1.3)--(0,-1.3) node[right] {$F_p$};
        \draw[thick,->,color=black] (0,1.7)--(0,3.7) node[right] {$F_N$};
    \end{tikzpicture}
\end{document}

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.