I'm trying to show that my graph has 5 significant figures on the y-axis. But I can't seem to get TikZ/pgfplots to show the trailing zeros though. I tried to get TikZ/pgfplots to show the extra zeros by using the ytick option, but it doesn't seem to work.
\documentclass[letterpaper,12pt]{article}
\usepackage{pgfplots}
\usepackage[margin=1in]{geometry}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xticklabel={\pgfmathprintnumber\tick\%},
xmin = 0, xmax = 20,
ymin = 10, ymax = 10.3,
xlabel = Concentration,
axis x line = bottom,
ylabel = Mass (g),
axis y line = left,
xtick = {0,5,10,15,20},
ytick = {10.000,10.100,10.200,10.300}, % My attempt thus far
grid = major,
width = \textwidth - 1in,
tick align = outside
]
\addplot coordinates{
(5,10.012)
(10,10.180)
(15,10.230)
};
\end{axis}
\end{tikzpicture}
\end{document}
And here's what the document currently looks like:
