[pstricks] Customising yLabels gives TeX capacity exceeded
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Jun 10 08:41:01 CEST 2013
Am 10.06.2013 08:08, schrieb Herbert Voss:
> Am 09.06.2013 22:19, schrieb Mark Horner:
>> I think that some clarity is starting to emerge for me, if the following
>> statement is correct:
>
> it is a problem with numerical labels. If you have something like
>
> yLabels={a0,a2,a3,a4,a5,a56}
>
> then it will work. I have to investigate.
try this example:
\documentclass{article}
\usepackage{pst-plot}
\usepackage{amsmath}
\begin{document}
\psset{ axesstyle=frame,
mathLabel=false,%%% important for text labels!
yLabels={0,2,3,4,5,56,6,8,5,9,10},
llx=-1cm,lly=-1.5cm,
xAxisLabel={$t~\text{(s)}$},
yAxisLabel={Heigth (m)},
xAxisLabelPos={c,-1cm},
yAxisLabelPos={-1cm,c}
}
\begin{psgraph}[labelFontSize=\footnotesize,
subgriddiv=1,griddots=10,linecolor=gray,tickcolor=gray,
ticklinestyle=dotted,xticksize=5cm,yticksize=10cm,
Dx=.4](0,0)(2,10){10cm}{5cm}
\psplot[plotstyle=curve,algebraic]{0}{2}{x^2*(-8)+16*x}
\psline[linestyle=dashed](1,0)(1,8)
\uput[d](1.0,0){$t_m$}
\uput*[d](2.0,0){$t_f$}
\uput*[l](0,8){$h_m$}
\end{psgraph}
\end{document}
with the pst-plot.tex (version 1.46) from
http://texnik.dante.de/tex/generic/pst-plot/
and it should work now.
Herbert
More information about the PSTricks
mailing list