[pstricks] (no subject)

eugene.ressler at frontiernet.net eugene.ressler at frontiernet.net
Fri Dec 3 07:41:53 CET 2004


Hello!

The code below works great except see the comment

% CHANGE (0,2) ...

Normally it draws a 3d spiral with derivative (tangent) vectors at
various locations along the path.

If I use any fractional value for the second parameter limits in the
parametric plot, the value is not parsed correctly.  Whatever follows
the decimal shows up as text at the origin and the rest of the plot is
junk.  Any integer returns the code to proper operation.

BTW, thanks for help on previous problem.  Upgrading to V2.28 fixed the
tickstyle=bottom problem.

Gene
-----------
 *File List*
 article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size10.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2004/06/22 v1.04 `PSTricks' (tvz)
  xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
   color.cfg    2003/03/08 v1.0 MiKTeX 'color' configuration
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-3dplot.sty    2004/07/15 package wrapper for pst-3dplot.tex (hv)
pst-3dplot.tex    2004/11/24 v1.50 `PST-3dplot' (hv)
pst-xkey.tex    2004/11/25 v1.2 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2004/11/25 v1.7 package option processing (HA)
 xkeyval.tex    2004/11/25 v1.7 key=value parser (HA)
 ***********
\listfiles
\documentclass{article}
\pagestyle{empty}
\usepackage{pstricks,pst-3dplot}
\begin{document}
% Vector derivatives of spiral
\noindent%
\psset{unit=2,Alpha=25,Beta=15}
\begin{pspicture}(-2,-.5)(2,2.5)%\psgrid
\pstThreeDCoor[linecolor=lightgray,xMin=-2,xMax=2,yMin=-2,yMax=2,zMin=0,zMax=3]
\parametricplotThreeD[linecolor=lightgray,%
linewidth=.25pt,%
xPlotpoints=200,%
plotstyle=curve,%
arrows=->](0,2.31){%
t 360 mul cos t mul %
t 360 mul sin t mul %
t}%
\parametricplotThreeD% CHANGE (0,2) in the next line to e.g. (0,2.2) and
it blows up. Why?
[linewidth=1pt,dotsize=2.5pt,plotstyle=line,arrows={*->},xPlotpoints=2,yPlotpoints=6](0,.2)(0,2){%
% position-x
u 360 mul cos u mul %
t %
  % begin deriv-x
  u 360 mul cos % \cos(2\pi t)
  u 360 mul sin % \sin(2\pi t)
    u 6.28319 mul % 2\pi
    mul %
    neg add %
  % end deriv-x
mul % 0-1 scaled deriv-x
add % added to position-x
% ----------
% position-y
u 360 mul sin u mul %
t %
  % begin deriv-y
  u 360 mul sin % \sin(2\pi t)
  u 360 mul cos % \cos(2\pi t)
    u 6.28319 mul % 2\pi
    mul %
    add %
  % end deriv-y
mul % 0-1 scaled deriv-y
add % added to position-x
% ----------
% position-z
u %
t %
  % begin deriv-z
  1 %
  % end deriv-z
mul % 0-1 scaled deriv-z
add % added to position-z
}
\end{pspicture}
\end{document}




More information about the PSTricks mailing list