Skip to content

Commit 10aef57

Browse files
committed
Semilog paper
1 parent 135c9f2 commit 10aef57

File tree

1 file changed

+37
-56
lines changed

1 file changed

+37
-56
lines changed

bode-plot.tex

+37-56
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
\documentclass[a4paper]{amsart}
2-
\usepackage[top=0.5cm,bottom=0.5cm,left=0.25cm,right=0.5cm]{geometry}
1+
\documentclass[a4paper,landscape]{amsart}
2+
\usepackage[top=1cm,bottom=1cm,left=0.75cm,right=0.75cm]{geometry}
33
\usepackage{siunitx}
44
\usepackage{tikz}
55
\usetikzlibrary{calc}
@@ -11,60 +11,41 @@
1111
\begin{figure}
1212
\centering
1313
\begin{tikzpicture}
14-
\begin{axis}[
15-
name=magnitude,
16-
title={\texttt{\large{Magnitude}}},
17-
width=1.0225\linewidth,
18-
height=0.59\paperheight,
19-
xmode=log,
20-
ymode=linear,
21-
axis line style={latex-latex},
22-
xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
23-
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
24-
ylabel={\si{\decibel}},
25-
ylabel style={rotate=-90,at={(ticklabel* cs:1)},anchor=south},
26-
xmin=1e-2,xmax=1e4,
27-
ymin=-60,ymax=100,
28-
enlarge y limits=0.025,
29-
ytick={-60,-40,...,100},
30-
grid=both,
31-
minor tick num=5,
32-
grid style={line width=.4pt, draw=gray!20},
33-
minor tick style={line width=.4pt, draw=gray!20},
34-
major tick style={line width=.8pt,draw=black},
35-
major grid style={line width=.6pt,draw=gray!40},
36-
ticklabel style={font=\footnotesize}
37-
]
38-
\addplot[mark=none,line width=.8pt,gray!80,domain=0.011:9000]{0}; % Makes "0 axis" thicker
39-
\end{axis}
40-
\begin{axis}[
41-
name=phase,
42-
title={\texttt{\large{Phase}}},
43-
at={($(magnitude.south)-(0,40)$)},
44-
anchor=north,
45-
width=1.0225\linewidth,
46-
height=0.35\paperheight,
47-
xmode=log,
48-
ymode=linear,
49-
axis line style={latex-latex},
50-
xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
51-
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
52-
xmin=1e-2,xmax=1e4,
53-
ymin=-180,ymax=180,
54-
enlarge y limits=0.025,
55-
ytick={-180,-135,...,180},
56-
yticklabels={-180$^\circ$,-135$^\circ$,-90$^\circ$,-45$^\circ$,0$^\circ$,45$^\circ$,90$^\circ$,135$^\circ$,180$^\circ$},
57-
grid=both,
58-
minor tick num=2,
59-
grid style={line width=.4pt, draw=gray!20},
60-
minor tick style={line width=.4pt, draw=gray!20},
61-
major tick style={line width=.8pt,draw=black},
62-
major grid style={line width=.6pt,draw=gray!40},
63-
ticklabel style={font=\footnotesize}
64-
]
65-
\addplot[mark=none,line width=.8pt,gray!60,domain=0.011:9000]{0};
66-
\end{axis}
67-
\node[above,font=\large\bfseries] at ($(magnitude.north)+(0,1)$) {\texttt{\LARGE{Bode plot}}};
14+
\begin{axis}[
15+
name=magnitude,
16+
%title={\texttt{\large{Magnitude}}},
17+
width=1.0225\linewidth,
18+
height=0.98\paperheight,
19+
xmode=log,
20+
ymode=linear,
21+
axis line style={latex-latex},
22+
%xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
23+
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
24+
%ylabel={\si{\decibel}},
25+
ylabel style={rotate=-90,at={(ticklabel* cs:1)},anchor=south},
26+
xmin=1e-4,xmax=1e4,
27+
ymin=-60,ymax=100,
28+
enlarge y limits=0.025,
29+
ytick align=outside,
30+
xtick align=outside,
31+
ytick pos=left,
32+
xtick pos=left,
33+
minor tick length=0pt,
34+
ytick={-60,-40,...,100},
35+
yticklabels={},
36+
xticklabels={},
37+
%ytick={-60,-40,...,100},
38+
grid=both,
39+
minor tick num=5,
40+
grid style={line width=.4pt, draw=gray!20},
41+
minor tick style={line width=.4pt, draw=gray!20},
42+
major tick style={line width=.8pt,draw=black},
43+
major grid style={line width=.6pt,draw=gray!40},
44+
ticklabel style={font=\footnotesize}
45+
]
46+
%\addplot[mark=none,line width=.8pt,gray!80,domain=0.011:9000]{0}; % Makes "0 axis" thicker
47+
\end{axis}
48+
%\node[above,font=\large\bfseries] at ($(magnitude.north)+(0,1)$) {\texttt{\LARGE{Semilog Paper}}};
6849
\end{tikzpicture}
6950
\end{figure}
7051
\end{document}

0 commit comments

Comments
 (0)