-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.tex
53 lines (37 loc) · 1.18 KB
/
basic.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\documentclass{article}
% \usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\begin{tikzpicture}
\draw (0,0) -- (0,4);
\draw[thick] (0,0) -- (4,4);
% \draw[fill=red] (0,0) rectangle (3,4);
\draw (0,0) parabola (4,4);
\draw[<->] (0,0) -- (4,4);
\draw (0,0) .. controls (0,4) and (4,0) .. (4,4);
\draw[red,ultra thick] (2,2) circle (3cm);
\draw (2,2) ellipse (3cm and 1cm);
\draw (3,0) circle (3cm);
\draw (3,0) arc (0:75:3cm);
\draw[step=1cm,gray,very thin] (-1.9,-1.9) grid (5.9,5.9);
\filldraw[red] (2,2) circle (3cm);
\shadedraw[inner color=blue,outer color=red, draw=black] (0,0) rectangle (4,4);
\draw[thick,->] (-4.5,0) -- (4.5,0) node[anchor=north west] {$x$ axis};
\draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {$y$ axis};
\foreach \x in {0,1,2,3,4}
\draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north] {$\x$};
\foreach \y in {0,1,2,3,4}
\draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=west] {$\y$};
\end{tikzpicture}
\\
\lipsum[2]
\\
\\
\begin{tikzpicture}
\draw (0,0) .. controls (0,4) and (4,0) .. (4,4);
\draw[red] (3,0) arc (0:75:3cm);
\draw[step=1cm,gray,very thin] (-.9,-.9) grid (2.9,2.9);
\end{tikzpicture}
\end{document}