I am new with pgfplot and I need to recreate this graph(but not such ugly). I hardly imagine how to make it point by point but my main problem is these vertical dashed lines on some points.
Here is my MWE. How to add labels for points? How can I add these vertical lines for some points like picture above?
\documentclass[12pt,a4paper]{letter}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[grid=both,
width=\linewidth,
xmode=log,
ymin=-140,
ymax=90,
log basis x={10},
xlabel={$ \omega $ rad/s},
x label style={at={(axis description cs:0.95,-0.01)}}
]
\addplot[
color=blue,
mark=*
]
coordinates {
(-1,80)(0.1,60)(0.4,40)(1,20)(4,-80)(8,-140)
};
\legend{}
\end{axis}
\end{tikzpicture}
\end{document}
nodes near coords
– Salim Bou Oct 17 '16 at 18:37