-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfigure_annotations.tex
107 lines (88 loc) · 2.38 KB
/
figure_annotations.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
\documentclass{article}
\usepackage{geometry}
\geometry{
letterpaper,
left=1in,
right=1in,
top=1in,
bottom=1in,
}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,float}
\floatplacement{figure}{H}
\usepackage{hyperref}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.12}
\graphicspath{{./images/}}
\input{math_commands}
% used tikz libraries
\usetikzlibrary{patterns}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usetikzlibrary{intersections}
\usetikzlibrary{trees}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{chains}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{shapes}
\usetikzlibrary{matrix}
\begin{document}
%=== MONTAGE ===%
\begin{figure}[!ht]
\centering
% style to add dot at the end of the line
\tikzset{
o/.style={
shorten >=#1,
decoration={
markings,
mark={
at position 1
with {
\fill circle [radius=#1];
}
}
},
postaction=decorate
},
o/.default=1pt
}
\begin{tikzpicture}
\tikzstyle{every node}=[font=\small,color=blue]
\node at (0,0) {\includegraphics[width=\linewidth]{assembly}};
\draw (-5.2,2.5) node(a){Conditionnement};
\draw[o,color=red!70] (a) -- +(0,-3);
\draw (-4,1.5) node(b){Contraction};
\draw[o,color=red!70] (b) -- +(0.5,-1.7);
\draw (-2,1.5) node(b){Veine};
\draw[o,color=red!70] (b) -- +(0.5,-1.2);
\draw (-0.5,2.8) node(b){Section d'essai};
\draw[o,color=red!70] (b) -- +(1.2,-1.8);
\draw (2.5,3.5) node(b){Déversement};
\draw[o,color=red!70] (b) -- +(1.4,-1);
\draw (2.2,-2.5) node(b){LDV};
\draw[o,color=red!70] (b) -- +(1.9,3.35);
\draw (1,-3.5) node(b){Réservoir};
\draw[o,color=red!70] (b) -- +(0.5,2.5);
\end{tikzpicture}
\end{figure}
% basic example to add letters to frames of a figure..
\begin{figure}
\centering
\begin{tikzpicture}
\draw (-8,-3.5) rectangle (8,4.5);
%ns = [0 15 45 90 182 912500];
\node at (-5.5,3.9) {\textit{(a)}\, 0 day};
\node at (0, 3.9) {\textit{(b)}\, 1 month};
\node at (5.8, 3.9) {\textit{(c)}\, 3 months};
\node at (-5.5,-0.15) {\textit{(d)}\, 6 months};
\node at (0,-0.15) {\textit{(e)}\, 1 year};
\node at (5.8,-0.15) {\textit{(f)} \, 5 millennia};
\end{tikzpicture}
\end{figure}
\end{document}