[pstricks] pstScalePoints for z-unit 3dPlots

Martin Hehn martin at hehn.biz
Wed Aug 8 21:01:32 CEST 2007


hello everybody,

I'm searching for a way to scale my z-unit of a 3dplot.
The \pstScalePoints command is only valid for x and y.
I would need something like \pstScalePoints(0.5,1,1){}{}{62 sub}
to let the first value be 62 and not 0.

best regards,
Martin Hehn


\begin{filecontens}{3dplot.txt}
%sample data (x=time,y=location,z=temperature)
(0.0000000,1,65.2900009)
(32.4000000,1,65.2896652)
(127.2000000,1,65.2897568)
(147.6000000,1,65.2897873)
(148.0000000,1,65.2897873)
(148.4000000,1,65.2897873)
(148.8000000,1,65.2897873)
(149.2000000,1,65.2897873)
(149.6000000,1,65.2897873)
(150.0000000,1,65.2897873)
(150.4000000,1,65.2897873)
(150.8000000,1,65.2897873)
(151.2000000,1,65.2897873)
(151.6000000,1,65.2897873)
(152.0000000,1,65.2897873)
(152.4000000,1,65.2897873)
(152.8000000,1,65.2897873)
(240.0000000,1,65.2898483)
%and so on
\end{filecontents}

\documentclass{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pst-3dplot}

\begin{document}
\pagestyle{empty}

\readdata{\data}{3dplot.txt}
\psscalebox{0.8}{%
\psset{Alpha=45,Beta=30}
\pstThreeDCoor[xMin=0,yMin=0,zMin=0,xMax=240,yMax=8,zMax=66]%
\listplotThreeD[plotstyle=line,drawStyle=xyLines]{\data}
}
\end{document}




More information about the PSTricks mailing list