Skip to content

Commit

Permalink
Semilog paper
Browse files Browse the repository at this point in the history
  • Loading branch information
barsa-net committed Jun 11, 2019
1 parent 135c9f2 commit 10aef57
Showing 1 changed file with 37 additions and 56 deletions.
93 changes: 37 additions & 56 deletions bode-plot.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\documentclass[a4paper]{amsart}
\usepackage[top=0.5cm,bottom=0.5cm,left=0.25cm,right=0.5cm]{geometry}
\documentclass[a4paper,landscape]{amsart}
\usepackage[top=1cm,bottom=1cm,left=0.75cm,right=0.75cm]{geometry}
\usepackage{siunitx}
\usepackage{tikz}
\usetikzlibrary{calc}
Expand All @@ -11,60 +11,41 @@
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
name=magnitude,
title={\texttt{\large{Magnitude}}},
width=1.0225\linewidth,
height=0.59\paperheight,
xmode=log,
ymode=linear,
axis line style={latex-latex},
xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
ylabel={\si{\decibel}},
ylabel style={rotate=-90,at={(ticklabel* cs:1)},anchor=south},
xmin=1e-2,xmax=1e4,
ymin=-60,ymax=100,
enlarge y limits=0.025,
ytick={-60,-40,...,100},
grid=both,
minor tick num=5,
grid style={line width=.4pt, draw=gray!20},
minor tick style={line width=.4pt, draw=gray!20},
major tick style={line width=.8pt,draw=black},
major grid style={line width=.6pt,draw=gray!40},
ticklabel style={font=\footnotesize}
]
\addplot[mark=none,line width=.8pt,gray!80,domain=0.011:9000]{0}; % Makes "0 axis" thicker
\end{axis}
\begin{axis}[
name=phase,
title={\texttt{\large{Phase}}},
at={($(magnitude.south)-(0,40)$)},
anchor=north,
width=1.0225\linewidth,
height=0.35\paperheight,
xmode=log,
ymode=linear,
axis line style={latex-latex},
xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
xmin=1e-2,xmax=1e4,
ymin=-180,ymax=180,
enlarge y limits=0.025,
ytick={-180,-135,...,180},
yticklabels={-180$^\circ$,-135$^\circ$,-90$^\circ$,-45$^\circ$,0$^\circ$,45$^\circ$,90$^\circ$,135$^\circ$,180$^\circ$},
grid=both,
minor tick num=2,
grid style={line width=.4pt, draw=gray!20},
minor tick style={line width=.4pt, draw=gray!20},
major tick style={line width=.8pt,draw=black},
major grid style={line width=.6pt,draw=gray!40},
ticklabel style={font=\footnotesize}
]
\addplot[mark=none,line width=.8pt,gray!60,domain=0.011:9000]{0};
\end{axis}
\node[above,font=\large\bfseries] at ($(magnitude.north)+(0,1)$) {\texttt{\LARGE{Bode plot}}};
\begin{axis}[
name=magnitude,
%title={\texttt{\large{Magnitude}}},
width=1.0225\linewidth,
height=0.98\paperheight,
xmode=log,
ymode=linear,
axis line style={latex-latex},
%xlabel={$\omega$[\si[per-mode=fraction]{\radian\per\second}]},
xlabel style={at={(ticklabel* cs:1,8)},anchor=north},
%ylabel={\si{\decibel}},
ylabel style={rotate=-90,at={(ticklabel* cs:1)},anchor=south},
xmin=1e-4,xmax=1e4,
ymin=-60,ymax=100,
enlarge y limits=0.025,
ytick align=outside,
xtick align=outside,
ytick pos=left,
xtick pos=left,
minor tick length=0pt,
ytick={-60,-40,...,100},
yticklabels={},
xticklabels={},
%ytick={-60,-40,...,100},
grid=both,
minor tick num=5,
grid style={line width=.4pt, draw=gray!20},
minor tick style={line width=.4pt, draw=gray!20},
major tick style={line width=.8pt,draw=black},
major grid style={line width=.6pt,draw=gray!40},
ticklabel style={font=\footnotesize}
]
%\addplot[mark=none,line width=.8pt,gray!80,domain=0.011:9000]{0}; % Makes "0 axis" thicker
\end{axis}
%\node[above,font=\large\bfseries] at ($(magnitude.north)+(0,1)$) {\texttt{\LARGE{Semilog Paper}}};
\end{tikzpicture}
\end{figure}
\end{document}

0 comments on commit 10aef57

Please sign in to comment.