I actually want to draw a graph with xmax=260 and ymax=800,000, but when I want to render I get: "Dimension too large"
What can I do?
Code: Select all
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=4in,
height=4in,
xlabel={x \ (in \ ME)},
ylabel={GE},
axis x line=middle,
axis y line=middle,
% the following x label positioning does work here.
every axis x label/.style=
{at={(ticklabel cs: 0.5,0)}, anchor=north},
ytick={0,200000,400000,...,600000},
xtick={0,40,80,...,240},
ymin=0,
ymax=800000,
xmin=0,
xmax=260,
xlabel shift = -1in,
clip mode=individual
]
\end{axis}
\end{tikzpicture}
\end{document}