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.


    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{

And here's what the document currently looks like:


  • Thanks! I didn't find that when I did a Google search. But now's there's an additional problem. The y-axis label isn't far away enough from the tick labels. – Kevin Dong Aug 21 '13 at 23:24
  • 1
    The wonderful thing with TeX.SX is that nearly every question you might want to ask, has been asked (and answered) already :) The answer for your y-axis label placement problem can be found here: tex.stackexchange.com/questions/46634/… – Philipp Aug 21 '13 at 23:27
  • Again, thank you so much! The problem with this community is that finding the question isn't always easy to do. For every question I ask, I find the answer to 10 questions on Google. – Kevin Dong Aug 21 '13 at 23:30

Browse other questions tagged or ask your own question.