aboutsummaryrefslogtreecommitdiff
path: root/src/Lecture3/live/tikz.tex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Lecture3/live/tikz.tex84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/Lecture3/live/tikz.tex b/src/Lecture3/live/tikz.tex
new file mode 100644
index 0000000..65dbd5d
--- /dev/null
+++ b/src/Lecture3/live/tikz.tex
@@ -0,0 +1,84 @@
1\documentclass[10pt,a4paper]{article}
2\usepackage[utf8]{inputenc}
3\usepackage{amsmath}
4\usepackage{amsfonts}
5\usepackage{amssymb}
6\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
7
8\usepackage{tikz}
9\usepackage{tikz-cd}
10
11\begin{document}
12
13\begin{tikzcd}
14T \arrow[dr,dotted,"{(x,y)}" description]
15 \arrow[drr,"x",out=60, in=120]
16 \arrow[ddr,"y"',bend right]\\
17& X\times_Z Y \arrow[r,"p"]\arrow[d,"q"'] & X \arrow[d,"f"]\\
18& Y \arrow[r,"g"',hook,two heads] & Z
19\end{tikzcd}
20
21
22\newpage
23
24
25\begin{tikzpicture}[scale=2]
26
27 \foreach \x in {0,1,...,5} {
28 \foreach \y in {0,...,3} {
29 \filldraw[fill=blue] (\x,\y) circle[radius=0.4];
30 };
31 };
32\end{tikzpicture}
33
34\begin{tikzpicture}[scale=3]
35 \draw[very thick] (0,0) \foreach \i in {0.3,0.6,...,1.5}
36 {-- (\i,\i^2) };
37\end{tikzpicture}
38
39
40\newpage
41
42\begin{tikzpicture}
43
44 \pgfmathsetmacro{\angle}{120}
45
46 \colorlet{coscolor}{blue!60}
47 \colorlet{sincolor}{red!60}
48 \tikzset{structureline/.style={black,thin}}
49
50 \draw[lightgray] (-5,-5) grid (5,5);
51
52
53 \filldraw[thick,fill=green!20,draw=green]
54(0,0) -- (1/3*4,0) arc[radius=1/3*4, start angle=0, end angle=\angle] node[below=0.5cm] {\(\angle^\circ\)} -- cycle;
55
56 \draw[->,structureline] (0,-5) -- (0,5);
57 \draw[->,structureline] (-5,0) -- (5,0);
58 \draw[structureline] (0,0) circle[radius=4];
59
60 \draw[structureline] (0,0) -- (\angle:4);
61 \draw[coscolor] (0,0) -- node[below] {\(\cos(\angle^\circ)\)} (4*cos{\angle},0);
62 \draw[thick,sincolor] (4*cos{\angle},0) -- node[right] {\(\sin(\angle^\circ)\)} (\angle:4);
63
64\end{tikzpicture}
65
66\newpage
67\begin{tikzpicture}[scale=3]
68 \coordinate (A) at (1,1);
69 \coordinate (B) at (3,1.5);
70
71 \draw[blue!20!red,line width=4pt] (0,0) -- (A) -- (2,0) -- cycle;
72
73
74 \draw[very thick,green!60,dotted] (B) circle[x radius = 0.7cm, y radius = 1.2cm];
75
76 \filldraw[fill=purple,draw=blue,line width=2pt] (B) arc[radius = 1cm, start angle=0, end angle=90] -- (A) --cycle;
77
78 \filldraw[fill=pink, line width=3pt] (0,0) rectangle (2,-1);
79
80 \draw[line width=2pt,>->] (1,0.5) -- (3,0);
81
82\end{tikzpicture}
83
84\end{document} \ No newline at end of file

Generated with cgit - Back to sebastiano.tronto.net