Graphics, Figures & Tables ⇒ drawing with tikz
drawing with tikz
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
drawing with tikz
Code: Select all
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[->](0,0) -- (3,0) node [below] {$x$};
\draw (3,0) -- (4,0) node [below] {$\theta = 0$};
\draw[->](0,0) -- (0,3) node [left] {$z$};
\draw (0,2) -- ++(4,0) node [above] {$\theta = 0$};
\node [above] at (2,2) {$\pi/2$};
\node [above right] at (0.1,2) {$\theta = 0$};
\foreach \y in {0.1,0.2,...,1.8} {
\draw (0.2,\y) -- ++(0.05,0);
\draw (2,\y) -- ++(0.05,0.05);
\draw (3,\y) -- ++(0,0.05);
}
\foreach \y in {0.5,1.0,1.5}
\draw[->] (1,\y) -- ++(0.5,0);
\node at (1.25,1.75) {$\underline{v}$};
\foreach \x in {0,0.1,...,4} {
\draw (\x,0.1) -- ++(0.05,0);
\draw (\x,1.9) -- ++({16*pi*\x}:0.05);
}
\end{tikzpicture}
\end{document}