aboutsummaryrefslogtreecommitdiff
path: root/src/Lecture3/live/tikz.tex
blob: 65dbd5d3939cce76a5ff7d9b5038390c7893e8fe (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\usepackage{tikz}
\usepackage{tikz-cd}

\begin{document}

\begin{tikzcd}
T \arrow[dr,dotted,"{(x,y)}" description]
  \arrow[drr,"x",out=60, in=120]
  \arrow[ddr,"y"',bend right]\\
& X\times_Z Y \arrow[r,"p"]\arrow[d,"q"'] & X \arrow[d,"f"]\\
& Y \arrow[r,"g"',hook,two heads]           & Z
\end{tikzcd}


\newpage


\begin{tikzpicture}[scale=2]

	\foreach \x in {0,1,...,5} {
		\foreach \y in {0,...,3} {
			\filldraw[fill=blue] (\x,\y) circle[radius=0.4];
		};
	};
\end{tikzpicture}

\begin{tikzpicture}[scale=3]
	\draw[very thick] (0,0) \foreach \i in {0.3,0.6,...,1.5}
	  {-- (\i,\i^2) };
\end{tikzpicture}


\newpage

\begin{tikzpicture}

	\pgfmathsetmacro{\angle}{120}
	
	\colorlet{coscolor}{blue!60}
	\colorlet{sincolor}{red!60}
	\tikzset{structureline/.style={black,thin}}
	
	\draw[lightgray] (-5,-5) grid (5,5);
	
	
	\filldraw[thick,fill=green!20,draw=green] 
(0,0) -- (1/3*4,0) arc[radius=1/3*4, start angle=0, end angle=\angle] node[below=0.5cm] {\(\angle^\circ\)} -- cycle;

	\draw[->,structureline] (0,-5) -- (0,5);
	\draw[->,structureline] (-5,0) -- (5,0);
	\draw[structureline] (0,0) circle[radius=4];
	
	\draw[structureline] (0,0) -- (\angle:4);
	\draw[coscolor] (0,0) -- node[below] {\(\cos(\angle^\circ)\)} (4*cos{\angle},0);
	\draw[thick,sincolor] (4*cos{\angle},0) -- node[right] {\(\sin(\angle^\circ)\)} (\angle:4);
	
\end{tikzpicture}

\newpage
\begin{tikzpicture}[scale=3]
	\coordinate (A) at (1,1);
	\coordinate (B) at (3,1.5);
	
	\draw[blue!20!red,line width=4pt] (0,0) -- (A) -- (2,0) -- cycle;

	
	\draw[very thick,green!60,dotted] (B) circle[x radius = 0.7cm, y radius = 1.2cm];
	
	\filldraw[fill=purple,draw=blue,line width=2pt] (B) arc[radius = 1cm, start angle=0, end angle=90] -- (A) --cycle;
	
	\filldraw[fill=pink, line width=3pt] (0,0) rectangle (2,-1);
	
	\draw[line width=2pt,>->] (1,0.5) -- (3,0);

\end{tikzpicture}

\end{document}

Generated with cgit - Back to sebastiano.tronto.net