|
| 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