I'd like to make a NMR spectroscopy chart, till now i have this:
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ scale only axis=true,
width=.8\textwidth,
height=.3\textwidth,
tick align=outside,
tick pos=left,
xmin=0, xmax=160,
ymin=0, ymax=100,
xticklabels={9,8,7,6,5,4,3,2,1,0},
yticklabels={0},
xlabel={PPM},
title={NMR Spectroscopy},
]
\addplot[black,domain=0:160] {8};
\addplot+[ycomb,black,no markers] plot coordinates{
(135,95)
(136,45)
(134,40)
(110,47)
(111,20)
(109,42)
(108,18)
(40,19)
};
\node at (123,85) {\small $CH_3$};
\node at (123,75) {\small \textsl{Triplet}};
\node at (110,65) {\small $CH_2$};
\node at (110,55) {\small \textsl{Quartet}};
\node at (40,45) {\small $OH$};
\node at (40,35) {\small \textsl{Singlet}};
\end{axis}
\end{tikzpicture}
\end{document}
what I want is this:
and my questions are:
- How to delete the plot between axis and "ground"?
- How to delete ticks on the Y axis?
- How to add a half ticks between majors on X axis?



ytick style={draw=none},in theaxisenvironment to prevent ticks form being displayed. – Patricio Feb 13 '24 at 17:15yticklabels={0}in your MWE – Patricio Feb 13 '24 at 17:26