[pstricks] pst-3dplot and \pstThreeDNode[SphericalCoor]

Patrice Mégret Patrice.Megret at umons.ac.be
Mon Nov 2 11:32:40 CET 2009


Dear Herbert,
Dear Robert,

I tried Robert's example and I have no trouble: the nodes are correctly placed with and without pstricks-add.

But note that
1. the key for IIIDticks is true|false and not none
2. there is no key NormalCoor but SphericalCoor=true|false

My example below works by setting explicitly SphericalCoor=false
%\pstThreeDNode[SphericalCoor=false](0,0,2){MyNodeB}
%\pstThreeDDot[drawCoor=true,linecolor=red](0,0,2)

and without specifying SphericalCoor (default behavior of local settings)
\pstThreeDNode(0,0,2){MyNodeB}
\pstThreeDDot[drawCoor=true,linecolor=green](0,0,2)


Robert, please note that in original Herbert's spherical coordinates the point (2,90,70)=(r,\phi,\theta) (\theta measured from the xy plane) is located in the yz plane. Herbert has also added a key SphericalCoorType=0|1 which allows to use spherical coordinates in the way (r,\theta,\phi) (\theta measured from z axis) as in electromagnetism.

%%%% modified Robert's example %%%%

\documentclass{minimal}
\usepackage{xkeyval}
%\usepackage{pst-pdf}
\usepackage{pst-3dplot}
\usepackage{pstricks-add}

\listfiles                          %%%%%see end of my mail
\begin{document}
\psset{Beta=20}
\begin{pspicture}(-2,-0.8)(2,4.2)
%Axes
\pstThreeDCoor[linecolor=black,IIIDticks=true,
arrowinset=0,arrowscale=1.5,
xMin=-1,yMin=-1,zMin=0,
xMax=3,yMax=3,zMax=4,
nameX=$x$,nameY=$y$,nameZ=$z$]
\pstThreeDNode[SphericalCoor](2,90,70){MyNodeA}
\pstThreeDDot[SphericalCoor,drawCoor=true,linecolor=blue](2,90,70)

%\pstThreeDNode[SphericalCoor=false](0,0,2){MyNodeB}
%\pstThreeDDot[drawCoor=true,linecolor=red](0,0,2)

\pstThreeDNode(0,0,2){MyNodeB}
\pstThreeDDot[drawCoor=true,linecolor=green](0,0,2)

\ncline{MyNodeA}{MyNodeB}
\end{pspicture}
\end{document}
%%%% end %%%%%

%%%%%%% original Robert's example %%%%%%%%%%%%

\documentclass{minimal}
\usepackage{xkeyval}
\usepackage{pst-pdf}
\usepackage{pst-3dplot}

\begin{document}
\psset{Beta=20}
\begin{pspicture}(-2,-0.8)(2,4.2)
%Axes
\pstThreeDCoor[linecolor=black,IIIDticks=none,      %%%% not none
arrowinset=0,arrowscale=1.5,
xMin=-1,yMin=-1,zMin=0,
xMax=3,yMax=3,zMax=3,
nameX=$x$,nameY=$y$,nameZ=$z$]
\pstThreeDNode[SphericalCoor](2,90,70){MyNodeA}
%\pstThreeDNode[NormalCoor](0,0,2){MyNodeB}             %%%%% NormalCoor ????
\pstThreeDNode(0,0,2){MyNodeB}
\ncline{MyNodeA}{MyNodeB}
\end{pspicture}
\end{document}

%%%%%% end original %%%%%%%%%%%%%



Here is my files:

*File List*
 minimal.cls    2001/05/25 Standard LaTeX minimal class
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
pst-3dplot.sty    2009/07/28 package wrapper for pst-3dplot.tex (hv)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/01/25 v1.27 `PSTricks' (tvz,hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-3dplot.tex    2009/10/06 v1.86 `PST-3dplot' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-add.tex (hv
)
pstricks-add.tex    2009/10/06 v1.86 `PSTricks-add' (hv)
pstricks-add.cfg    2005/01/10 v0.1 addtional user stuff (hv)
 ***********



Best regards,
Patrice




-----Message d'origine-----
De : pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] De la part de Herbert Voss
Envoyé : vendredi 30 octobre 2009 23:29
À : Graphics with PSTricks
Objet : Re: [pstricks] pst-3dplot and \pstThreeDNode[SphericalCoor]

robert.fischer10 at arcor.de schrieb:

> globaly settings are done by psset, local ones by brackets (as far as I know). Here a small deviation (which is really no serious problem). Two weeks ago this appears not (I'am quite sure, since the picture changed after compiling this week):

same proble as with pstricks-add.
Don't know, what I did,  that it worked in the past and now not ...

The definitiosn of all pstricks objects should be

\def\foo{\def\pst at par{}\pst at object{foo}}

but the \def\pst at par{} is sometimes missing.

tomorrow will be an updated version at
http://archiv.dante.de/~herbert/PSTricks-TDS/

Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/

Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.

Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.


More information about the PSTricks mailing list