Skip to content

Commit 5ae8955

Browse files
committed
Initial commit
0 parents  commit 5ae8955

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.aux
2+
*.log
3+
*.synctex.gz

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Emanuele Barsanti
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# bode-plot-paper
2+
Semilogarithmic paper template for Bode plot

bode-plot.tex

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
\documentclass[a4paper]{amsart}
2+
\usepackage[top=0.5cm,bottom=0.5cm,left=0.25cm,right=0.5cm]{geometry}
3+
\usepackage{siunitx}
4+
\usepackage{tikz}
5+
\usetikzlibrary{calc}
6+
\usepackage{pgfplots}
7+
\pgfplotsset{compat=1.3}
8+
9+
\begin{document}
10+
\thispagestyle{empty}
11+
\begin{figure}
12+
\centering
13+
\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}}};
68+
\end{tikzpicture}
69+
\end{figure}
70+
\end{document}

0 commit comments

Comments
 (0)