# “Dimension too large” for pgf plots

I have code below which complaining "Dimension too large", what is the problem? And I want to zoom in the 99.8-100 rather than using log scale for y axis, how should I do it?

\documentclass{article}
% GRAPHICS
\usepackage{pgf}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{arrows,automata,positioning}
\begin{document}

\begin{tikzpicture}[font=\sffamily]
\begin{semilogyaxis}[title=\textbf{Anti-correlated dataset},
legend pos=outer north east,xtick={1,2,3,4,5,6,7,8,9},
scaled ticks=false,
log ticks with fixed point,
ylabel = Optimality (%),
xlabel = Number of Constraints
]
\legend{$\kmeans$,$\kmeansskyline$,$\pyramid$,$\pyramidskyline$}
\end{semilogyaxis}
\end{tikzpicture}
\end{document}

-
 Please, don't use nonstandard classes in code examples, if they are not essential for reproducing the problem. Since the same happens with article I edited the question changing the class. – egreg Nov 24 '12 at 10:18

In the log mode, ymin=0 causes the problem.

\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\begin{semilogyaxis}[title=\textbf{Anti-correlated dataset},
legend pos=outer north east,xtick={1,2,3,4,5,6,7,8,9},ymin=1,
scaled ticks=false,
log ticks with fixed point,
ylabel = Optimality (\%),
xlabel = Number of Constraints
]
\legend{$k$,$m$,$p$,$ps$}

For the zoom-in you just need to use an axis environment instead of semilogyaxis and use ymin=99.8.