Page MenuHomec4science

bode.tex
No OneTemporary

File Metadata

Created
Sat, Jan 11, 16:01

bode.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
%height = 18cm,
width = 10cm,
xlabel={Fréquence [\si{\hertz}]},
xmin = 3000, xmax = 8500,
legend style =
{
at = {(0.05, 0.95)},
anchor = north west
},
%cycle list name = color,
grid style = dashed,
ymajorgrids = true,
% custom entry
legend image with node/.style={
legend image code/.code={%
\node[#1, circle, fill, anchor=center, inner sep=1.7pt] at (0.3cm,0cm) {};
}
},
clip mode = individual,
minor x tick num = 4,
minor y tick num = 4
}
\begin{axis}
[
ylabel={Gain [\si{\decibel}]},
ymin = 0, ymax = 25
]
\addplot
[
color = red,
mark = +,
mark options = {
draw = red,
fill = none
},
only marks,
on layer = main
]
gnuplot [raw gnuplot] {
plot "outs/bode_precise900k.xls" using 1:2;
};
\addlegendentry{$R = 900$ \si{\kilo\ohm}}
\addplot
[
color = blue,
mark = asterisk,
mark options = {
draw = blue,
fill = none
},
only marks,
on layer = main
]
gnuplot [raw gnuplot] {
plot "outs/bode_precise160k.xls" using 1:2;
};
\addlegendentry{$R = 160$ \si{\kilo\ohm}}
\addplot
[
color = brown,
mark = +,
mark options = {
draw = brown,
fill = none
},
only marks,
on layer = main
]
gnuplot [raw gnuplot] {
plot "outs/bode_precise12k.xls" using 1:2;
};
\addlegendentry{$R = 12$ \si{\kilo\ohm}}
% nodes
\node[label={90:{}},
black,
circle,
fill,
inner sep=1.7pt,
on layer = foreground] at (axis cs:6871.67,19.492) {};
\draw[black, dashed, on layer = main] (6871.67, 0) -- (6871.67, 19.492);
\node[label={90:{}},
black,
circle,
fill,
inner sep=1.7pt,
on layer = foreground] at (axis cs:6871.67,16.962) {};
\draw[black, dashed, on layer = main] (6871.67, 0) -- (6871.67, 16.962);
\node[label={90:{}},
black,
circle,
fill,
inner sep=1.7pt,
on layer = foreground] at (axis cs:6824.55,10.6) {};
\draw[black, dashed, on layer = main] (6824.55, 0) -- (6824.55, 10.6);
\addlegendimage{legend image with node = black}
\addlegendentry{Pics de résonnance}
\end{axis}
\end{tikzpicture}

Event Timeline