From d331d84212f7e8a9a94c72b42111cbbbf622c883 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 16 Nov 2007 11:26:36 +0000 Subject: pst-3dplot update from ctan git-svn-id: svn://tug.org/texlive/trunk@5459 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-3dplot/Changes | 4 + .../doc/generic/pst-3dplot/pst-3dplot-doc.pdf | Bin 2275318 -> 2274896 bytes .../doc/generic/pst-3dplot/pst-3dplot-doc.tex | 94 ++++++++++++--------- 3 files changed, 60 insertions(+), 38 deletions(-) (limited to 'Master/texmf-dist/doc/generic') diff --git a/Master/texmf-dist/doc/generic/pst-3dplot/Changes b/Master/texmf-dist/doc/generic/pst-3dplot/Changes index 8ed258675e5..43a46d7cf30 100644 --- a/Master/texmf-dist/doc/generic/pst-3dplot/Changes +++ b/Master/texmf-dist/doc/generic/pst-3dplot/Changes @@ -1,4 +1,5 @@ pst-3dplot.pro -------- +0.24 2006-08-30 - add code for special node calculating 0.23 2007-08-18 - add coorType 0,1,2 code for convertTo2D - add code IIIDCylinder and cylindrical coordinates - add code for \psBox and \psCylinder @@ -9,6 +10,9 @@ pst-3dplot.pro -------- pst-3dplot.tex -------- +1.77 2007-10-03 - fix trailing spaces in \pstThreeDNode +1.76 2007-08-30 - add optional argument nodeType for different setting + the node depending to a line and a plain 1.75 2007-08-18 - add optional argument coorType for different types of coordinates - add \psCylinder and \psBox with inside/outside view diff --git a/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.pdf b/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.pdf index 5affd88cc37..e391cc760c1 100644 Binary files a/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.pdf and b/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.pdf differ diff --git a/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.tex b/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.tex index ea88c16703f..dbc52557da2 100644 --- a/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-3dplot/pst-3dplot-doc.tex @@ -747,9 +747,8 @@ RotSequence & xyz|xzy|yxz|yzx|zxy|zyx & xyz\\ } - \begin{LTXexample}[width=6cm] -\begin{pspicture}(-3,-2.5)(3,4.25)\psgrid +\begin{pspicture}(-3,-2.5)(3,4.25) \pstThreeDCoor \end{pspicture} \end{LTXexample} @@ -766,13 +765,14 @@ other macros. Otherwise they are only local inside the macro to which they are p \verb+Alpha+ ist the horizontal and \verb+Beta+ the vertical rotation angle of the Cartesian coordinate system. +\lstset{wide=false} + + + \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-1.25)(1,2.25)\psgrid - \pstThreeDCoor[% - linewidth=1.5pt,linecolor=blue,% - xMin=-1,xMax=2, - yMin=-1,yMax=2,% - zMin=-1,zMax=2,% +\begin{pspicture}(-2,-1.25)(1,2.25) + \pstThreeDCoor[linewidth=1.5pt,linecolor=blue, + xMax=2,yMax=2,zMax=2, Alpha=-60,Beta=30] \end{pspicture} \end{LTXexample} @@ -780,16 +780,15 @@ Cartesian coordinate system. \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-2)(2,2)\psgrid - \pstThreeDCoor[xMin=-2,xMax=2,yMin=-2,yMax=2,% - zMin=-2,zMax=2] +\begin{pspicture}(-2,-2)(2,2) + \pstThreeDCoor[xMax=2,yMax=2,zMax=2] \end{pspicture} \end{LTXexample} \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-2)(2,2)\psgrid - \pstThreeDCoor[xMin=-2,xMax=2,yMin=-2,yMax=2,zMin=-2,zMax=2,% +\begin{pspicture}(-2,-2)(2,2) + \pstThreeDCoor[xMax=2,yMax=2,zMax=2, Alpha=30,Beta=60] \end{pspicture} \end{LTXexample} @@ -797,8 +796,8 @@ Cartesian coordinate system. \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-2)(2,2)\psgrid - \pstThreeDCoor[xMin=-2,xMax=2,yMin=-2,yMax=2,zMin=-2,zMax=2,% +\begin{pspicture}(-2,-2)(2,2) + \pstThreeDCoor[xMax=2,yMax=2,zMax=2, Alpha=30,Beta=-60] \end{pspicture} \end{LTXexample} @@ -806,24 +805,25 @@ Cartesian coordinate system. \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-2)(2,2)\psgrid +\begin{pspicture}(-2,-2)(2,2) \pstThreeDCoor[ - xMin=-2,xMax=2,yMin=-2,yMax=2,% - zMin=-2,zMax=2,Alpha=90,Beta=60] + xMax=2,yMax=2,zMax=2, + Alpha=90,Beta=60] \end{pspicture} \end{LTXexample} \begin{LTXexample}[width=4.25cm] -\begin{pspicture}(-2,-2)(2,2)\psgrid - \pstThreeDCoor[linewidth=1.5pt,% - xMin=-1,xMax=2,yMin=-1,yMax=2,% - zMin=-1,zMax=2,Alpha=40,Beta=0] +\begin{pspicture}(-2,-2)(2,2) + \pstThreeDCoor[linewidth=1.5pt, + xMax=2,yMax=2,zMax=2, + Alpha=40,Beta=0] \end{pspicture} \end{LTXexample} +\lstset{wide=true} \subsection{Ticks} With the option \verb+IIIDticks+ the axes get ticks and labels. There are several @@ -839,21 +839,20 @@ ticklabels can be changed by redefining the macro \psset{unit=1.25,gridlabels=0pt} \begin{LTXexample}[width=7.25cm] \begin{pspicture}(-3,-2.5)(3,4) - \psgrid \pstThreeDCoor[IIIDticks]% \pstThreeDPut(3,0,3){\Huge default} \end{pspicture} \end{LTXexample} \begin{LTXexample}[width=7.25cm] -\begin{pspicture}(-3,-2.5)(3,4)\psgrid +\begin{pspicture}(-3,-2.5)(3,4) \pstThreeDCoor[linecolor=black,% IIIDticks,xMin=-2,yMin=-2,zMin=-2]% \end{pspicture} \end{LTXexample} \begin{LTXexample}[width=7.25cm] -\begin{pspicture}(-3,-2.5)(3,4)\psgrid +\begin{pspicture}(-3,-2.5)(3,4) \pstThreeDCoor[linecolor=black,% IIIDticks,IIIDzTicksPlane=yz,IIIDzticksep=-0.2,% IIIDxTicksPlane=yz,,IIIDxticksep=-0.2,% @@ -867,7 +866,6 @@ The following example shows a wrong placing of the labels, the planes should be \begin{LTXexample}[width=7.25cm] \psset{Alpha=-60,Beta=60} \begin{pspicture}(-4,-2.25)(1,3) - \psgrid \pstThreeDCoor[linecolor=black,% IIIDticks,Dx=2,Dy=1,Dz=0.25]% \end{pspicture} @@ -876,7 +874,6 @@ The following example shows a wrong placing of the labels, the planes should be \begin{LTXexample}[width=7.25cm] \psset{Alpha=-60,Beta=60} \begin{pspicture}(-4,-2.25)(1,3) - \psgrid \pstThreeDCoor[linecolor=black,% IIIDticks,planecorr=normal, Dx=2,Dy=1,Dz=0.25]% @@ -886,7 +883,6 @@ The following example shows a wrong placing of the labels, the planes should be \begin{LTXexample}[width=7.25cm] \psset{Alpha=-60,Beta=60} \begin{pspicture}(-4,-2.25)(1,3) - \psgrid \pstThreeDCoor[linecolor=black,% IIIDticks,planecorr=xyrot, Dx=2,Dy=1,Dz=0.25]% @@ -921,6 +917,21 @@ The angle \texttt{Alpha} is only valid for placing the ticks, if any. The angle \end{pspicture} \end{LTXexample} + +With \texttt{coorType=3} the y--z-axes are orthogonal and the angle between x- and y-axis +is always 45 degrees and the x-axis is shortened by a factor of $1/\sqrt{2}$. +The angle \texttt{Alpha} is only valid for placing the ticks, if any. The angle \texttt{Beta} is not valid. + +\begin{LTXexample}[width=9.75cm] +\psset{coorType=3,Alpha=90, + IIIDxTicksPlane=yz} +\begin{pspicture}(-2,-2)(3,3) +\pstThreeDCoor[IIIDticks,zMax=3]% +\end{pspicture} +\end{LTXexample} + + + \clearpage \section{Rotation} @@ -1170,7 +1181,6 @@ Possible values for the two dimensional plane are \verb| xy xz yz |. If this par The object can be of any type, in most cases it will be some kind of text. The reference point for the object is the left side and vertically centered, often abbreviated as \verb|lB|. The following examples show for all three planes the same textbox. - \begin{LTXexample}[width=7.25cm] \begin{pspicture}(-4,-4)(3,4) \psset{Alpha=30} @@ -1202,7 +1212,8 @@ The object can be of any type, in most cases it will be some kind of text. The r \bigskip -The following examples use the \verb|origin| option to show that there are still some problems with the xy-plane. +The following examples use the \verb|origin| option to show that there are +still some problems with the xy-plane. % ---------------------------------------------------------------------- % Einfuegung Erlaeuterug examplee und Abbildungen % - raus: -------------------------------------------------------------- @@ -1231,11 +1242,18 @@ The second parameter is \verb|planecorr|. As first the values: letters will be set parallel to the $y$-axis. \end{description} -What kind off correction is ment? In the plots above labels for the $xy$ plane and the $xz$ plane are mirrored. This is not a bug, it's \dots mathematics. +What kind off correction is ment? In the plots above labels for the $xy$ +plane and the $xz$ plane are mirrored. This is not a bug, it's \dots mathematics. -\verb|\pstPlanePut| puts the labels on the plane of it's value. That means, \verb|plane=xy| puts the label on the $xy$ plane, so that the $x$ marks the positive direction for the width, the $y$ for the height and the label {\small{XY plane}} on the top side of plane. If you see the label mirrored, you just look from the bottom side of plane. \dots{} +\verb|\pstPlanePut| puts the labels on the plane of it's value. That means, +\verb|plane=xy| puts the label on the $xy$ plane, so that the $x$ marks the +positive direction for the width, the $y$ for the height and the label +{\small{XY plane}} on the top side of plane. If you see the label mirrored, +you just look from the bottom side of plane \dots{} -If you want to keep the labels readable for every view, i.\,e.\ for every value of \verb|Alpha| and \verb|Beta|, you should set the value of the parameter \verb|planecorr| to \verb|normal|; just like in next example: +If you want to keep the labels readable for every view, i.\,e.\ for every +value of \verb|Alpha| and \verb|Beta|, you should set the value of the +parameter \verb|planecorr| to \verb|normal|; just like in next example: \medskip \begin{LTXexample}[width=6cm] @@ -1427,10 +1445,10 @@ When the option \verb|fillstyle| is set to another value than \verb|none| the tr \begin{LTXexample}[width=6.25cm] \begin{pspicture}(-3,-4.25)(3,3.25) \pstThreeDCoor[xMin=-4,xMax=4,yMin=-3,yMax=5,zMin=-4,zMax=3] - \pstThreeDTriangle[fillcolor=yellow,fillstyle=solid,% - linecolor=blue,linewidth=1.5pt](5,1,2)(3,4,-1)(-1,-2,2) \pstThreeDTriangle[drawCoor=true,linecolor=black,% linewidth=2pt](3,1,-2)(1,4,-1)(-2,2,0) + \pstThreeDTriangle[fillcolor=yellow,fillstyle=solid,% + linecolor=blue,linewidth=1.5pt](5,1,2)(3,4,-1)(-1,-2,2) \end{pspicture} \end{LTXexample} @@ -1440,15 +1458,15 @@ Especially for triangles the option \verb|linejoin| is important. The default va \centering \psset{linewidth=0.2} \begin{pspicture}(3,2.25) - \psline(0,0)(1,2)(2,0)(3,2) + \psline[linejoin=0](0,0)(1,2)(2,0)(3,2) \end{pspicture}% \hspace{0.4cm}% \begin{pspicture}(4,2.25) - \pscustom{\code{1 setlinejoin}\psline(0,0)(1,2)(2,0)(3,2)(4,0)} + \psline[linejoin=1](0,0)(1,2)(2,0)(3,2)(4,0) \end{pspicture}% \hspace{0.4cm}% \begin{pspicture}(3,2.25) - \pscustom{\code{2 setlinejoin}\psline(0,0)(1,2)(2,0)(3,2)} + \psline[linejoin=2](0,0)(1,2)(2,0)(3,2) \end{pspicture} \caption{The meaning of the option \texttt{linejoin=0|1|2} for drawing lines} \end{figure} -- cgit v1.2.3