[pstricks] axis labels over a line

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Feb 2 16:00:58 CET 2010


Am 02.02.2010 14:51, schrieb mathias legrand:

> here is the piece of code of interest.
> 
> Example 1 : bad

\def\psvlabel#1{\rput*[cl](-8pt,0){#1}}
\def\pshlabel#1{\rput*[cb](0,-5pt){#1}}

> \psset{xunit=1cm, yunit=1cm}
> \begin{pspicture}(0,-1)(5,2)
> \psline[linecolor=red,linewidth=2pt]{c-c}(-0.6,-0.15)(2,1)(3.25,-0.5)(5,2)
> \psaxes[tickstyle=bottom,labelsep=1pt,comma](0,0)(5,2)
> \end{pspicture}

may help

Herbert


More information about the PSTricks mailing list