On Sun, Oct 2, 2022 at 8:55 PM Dan <topsqua...@gmail.com> wrote: > > Hello! I'm having troubles with drawing an arc. The rest of the diagram > works fine and the code seems to parse but nothing shows up on the picture. > > Here's the code: > \begin{tikzpicture}[domain=3:10] > \draw (0,0) rectangle (3,5); > \draw (0,0) -- (10, 0); > \draw [<->] (2,0) -- (2,5); > \coordinate [label=left:{$h$}] (h) at (2,2.5); > \draw [<->] (3,-0.5) -- (10,-0.5); > \coordinate [label=below:{$R$}] (R) at(6.5,-0.5); > \draw (3,5) -- (5,5); > \draw[->] (3,5) -- (5,7); > \path (3,5) to node [above] {$v_0$} (5,8); > \path (3,5) arc [start angle=0, end angle=45, radius=3mm]; > \coordinate [label={$\theta$}] (t) at (4, 5.1); > \draw [dashed] plot > (\x,{5+tan(45)*((\x)-3)-4.9*(((\x)-3)/(6.33*cos(45)))^2}); > \end{tikzpicture} > > The problem is the path line 4 lines above the bottom. This is practically a > copy of a line I got out of a manual but I can't seem to make it work. The > arc is supposed to appear in the corner next to the symbol theta. See the > attachment. (It's a little fuzzy, but it will do.) > > Thanks! > > -Dan
Hi Dan, Note that the path command will not actually draw anything, unless you will tell it to draw the path with the optional argument, i.e., \path[draw]. If I understand your problem, this will also not solve it, as the arc key draw an arc that starts at the point you mention, and not centered around it. If you want to draw an arc for the angle, I recommend using the angles and quotes (for the node) libraries (for more information see https://tikz.dev/library-angle). I attached a file with what I think is the desired output. Regards, Udi > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users
tikz_arc.tex
Description: Binary data
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users