[pstricks] ylabelPos and overfull boxes

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jun 19 17:21:49 CEST 2009


Adam Fenn schrieb:
>>> When I run the example below under plain TeX the command ylabelPos=right
>>> produces overfull boxes.
>>>
>>> %------------------ Plain TeX--------------------
>>> \input pst-plot.tex
>>> \input pstricks-add.tex
>>>
>>> \pspicture(1,5)
>>>  \psaxes[xAxis=false,linecolor=red,ylabelPos=right]{->}(0.5,0)(0.5,5)
>>>  \endpspicture
>>> \bye
>> there is no value "right" possible.
>> yLabelPos={ ...,...}
> 
> Sorry, I don't understand. What do I put in yLabelPos={ ...,...} to put the labels to the right of the axis?

yAxisLabelPos takes the coordinates of the label position.
It is only possible with the psgraph environment


\documentclass[12pt]{article}

\usepackage{pstricks-add}

\begin{document}
\pspicture(1,5)
\psaxes[xAxis=false,linecolor=red]{->}(0,0)(5,5)[,0][$y$,0]
\endpspicture

\vspace{1cm}
\psset{linecolor=red,yAxisLabelPos={-0.25,c},
  yAxisLabel=Left,xAxisLabelPos={c,-1},xAxisLabel=x-axis}
\psgraph[Dx=0.25]{->}(1,5){4cm}{5cm}
\endpsgraph


\end{document}

Herbert


More information about the PSTricks mailing list