Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a Pgfplot and for some reason it does not care about my y-axis settings... I have set ymax to 15 but for some reason it only goes up to ymax is 14 or something...

Can anyone explain why? And how I fix this?

Since my plot is based on coordinate data (and the complete source) exceeds the input limit of a question you can download the complete source here: http://pastebin.com/nwNwuFam

However I also noticed that this also occures when I don't set any coordinate data...

enter image description here

\documentclass{standalone}
\usepackage{graphics}
\usepackage{siunitx}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}

\begin{document} 
\begin{tikzpicture}

\pgfplotsset{%
  width=4cm,
  height=4cm,
  scale only axis,
  every x tick label/.append style={font=\scriptsize\color{gray!80!black}},
  xmajorgrids,
  xminorgrids,
  every y tick label/.append style={font=\scriptsize\color{gray!80!black}},
  ymajorgrids,
  yminorgrids
}

\begin{axis}[%
xmin=0, xmax=0.015,
xlabel={Time [\si{\second}]},
ymin=-10, ymax=15,
ylabel={$x_i$},
scaled x ticks=base 10:2]

\addplot [
color=blue,
solid
]
coordinates{};

\addplot [
color=green!50!black,
solid
]
coordinates{};

\end{axis}

\end{tikzpicture}
\end{document}
share|improve this question
    
The plot goes up to 15 for me, and none of the data is cut off. What version of PGFPlots are you using? –  Jake Apr 18 '13 at 9:08
    
How can I check that? –  WG- Apr 18 '13 at 9:09
    
It's printed in your .log file that's generated when you compile your document, somewhere near the start of the file. –  Jake Apr 18 '13 at 9:20
1  
Yeah, updating PGFPlots might be a good idea. Take a look at the second answer to tex.stackexchange.com/questions/97743/updating-pgfplots for a way of doing this without tlmgr –  Jake Apr 18 '13 at 9:28
1  
Sure, here you go: ge.tt/5UVPvOe/v/0?c –  Jake Apr 18 '13 at 9:38
show 4 more comments

closed as too localized by Jubobs, mafp, Speravir, lockstep, Werner Apr 22 '13 at 2:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.