[pstricks] \psSurface in \pst3d-solides

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jul 22 18:06:27 CEST 2010


Am 22.07.2010 17:36, schrieb Zbigniew Nitecki:
> The following truly minimal code, which mimics example 7.3 in the (English) documentation for pst3d-solides,

please provide _always_ full working minimal examples

You have to set the ngrid parameter, eg ngrid=0.1 0.1
it is internally predefined to 0, which makes no sense here.

\documentclass{article}
\usepackage{pst-solides3d}

\begin{document}

\begin{pspicture}(-0.5,-2)(3,3)
\psset{unit=0.5}
\psSurface[
  fillcolor=gray,
  axesboxed,
  ngrid=0.1 0.1,
  algebraic,
  grid,% comment it out to see meaning of ngrid
  Zmin=-2,Zmax=1
](-1,-1)(1,1){ (x^2-3*y^2)/2 }
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list