Wanted to get a similar output with pgfplot. My code is
Code: Select all
\documentclass{standalone}
%
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{calc,through,backgrounds}
\usepackage{pgfplots}
\pgfplotsset{compat=1.8}
%\usetikzlibrary{pgfplots.patchplots}
\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[xlabel=Frequency (Hz), ylabel=Gain]
\addplot[no marks, smooth] coordinates {
(100 , 0.05)
(200 , 0.12)
(300 , 0.22)
(400 , 0.32)
(500 , 0.44)
(700 , 0.7)
(900 , 0.8)
(1000, 0.85)
(1500, 0.9)
(2000, 0.95)
(2500, 0.95)
(3000, 0.95)
(3500, 0.95)
} ;
\addplot[only marks,red!50!black] coordinates {
(100 , 0.05)
(200 , 0.12)
(300 , 0.22)
(400 , 0.32)
(500 , 0.44)
(700 , 0.7)
(900 , 0.8)
(1000, 0.85)
(1500, 0.9)
(2000, 0.95)
(2500, 0.95)
(3000, 0.95)
(3500, 0.95)
} ;
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
What options should I give to get a plot similar to what I get from Gnuplot?