[pstricks] How do xAxisLabelPos and yAxisLabelPos work?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Jun 4 08:55:43 CEST 2008


Denis Bitouzé schrieb:
> Hello,
> 
> I try to place xAxisLabel and yAxisLabel at right positions playing with
> xAxisLabelPos and yAxisLabelPos but I definitively don't understand how
> they work.
> 
> Is there a place where this is explained? The (nice) pstricks-add
> documentation only shows examples...


Denis,
it is nothing else than an \uput or \rput with absolute
or relative coordinates.

\documentclass{article}

\usepackage{pstricks-add}

\begin{document}
Absolute coordinates for the labels, doesn't take the
x/y-units into account

\psset{xAxisLabel=x-Axes,yAxisLabel=y-Axes,
    xAxisLabelPos={3cm,-1cm},yAxisLabelPos={-1.5cm,2.5cm}}
\begin{psgraph}(5,5){7cm}{7cm}
\psdot[linecolor=red,dotscale=2](3cm,-1cm)
\psdot[linecolor=red,dotscale=2](-1.5cm,2.5cm)
\end{psgraph}

\vspace{1.5cm}
relative coordinates for the labels, take the
x/y-units into account

\psset{xAxisLabel=x-Axes,yAxisLabel=y-Axes,
    xAxisLabelPos={3,-1},yAxisLabelPos={-1.5,2.5}}
\begin{psgraph}(5,5){7cm}{7cm}
\psdot[linecolor=red,dotscale=2](3,-1)
\psdot[linecolor=red,dotscale=2](-1.5,2.5)
\end{psgraph}

\end{document}

hope, it helps
Herbert



More information about the PSTricks mailing list