[pstricks] psgraph pstScalePoints and labels

Antoine Pairet antoine at pairet.be
Fri May 29 16:21:41 CEST 2009


Hi all!
I need to represent data ranging from -11.442682282 to -11.436768102
and I have problems with the labels on the axes. I tried to play with
Dy, Oy but I can not get the correct settings. With the provided
example, the labels range from -15.4 to -8.8 and do not correspond to
the correct values.

Below is a minimal example.
Best regards,
Antoine Pairet


\begin{filecontents}{data.dat}
   13.23251400000000  -11.44268228200000    4.59849657000000
1.40493544877201
   11.57844475000000  -11.44269146500000    4.59849918080000
1.40493624640736
    9.92438550000000  -11.44276508800000    4.59866092640000
1.40498566307214
    8.27032125000000  -11.44327883750000    4.59929667740000
1.40517989807378
    6.61628200000000  -11.44431177300000    4.59929726250000
1.40518007679451
    4.96219275000000  -11.43676810200000    4.59398967360000
1.40355849908927
\end{filecontents}

\documentclass{article}
\usepackage{pstricks-add}

\begin{document}
\readdata{\heightEne}{data.dat}

\psset{plotstyle=dots,lly=-.25,llx=-2.5,urx=3,ury=2}
\begin{psgraph}[Dy=1,Oy=-11.444,Ox=4]{->}(4,0)(4,-2)(14,4){9cm}{5cm}
	\pstScalePoints(1,100){}{11.444 add}
	\psset{plotNo=1,plotNoMax=3}
	\listplot[linecolor=red]{\heightEne}
\end{psgraph}
\pstScalePoints(1,1){}{}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090529/21595c48/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part
URL: <http://tug.org/pipermail/pstricks/attachments/20090529/21595c48/attachment.bin>


More information about the PSTricks mailing list