zauguin / luapstricks

8 stars 0 forks source link

\parametricplot and pst-node #49

Closed hvoss49 closed 3 years ago

hvoss49 commented 3 years ago

Using the macro \parametricplot leads to wrong coordinates. The third and first example should be the same!

Bildschirmfoto 2021-09-03 um 14 58 12
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pst-node,pst-plot}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}

\begin{pspicture}[showgrid=b](-2,-2)(2,2)
\def\N{9 }%
\degrees[\N]
\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoDeg}{t dup cos exch sin}{P}
\psnpolygon(0,\numexpr\Pnodecount-1){P}
\foreach \i in {0,1,...,\numexpr\Pnodecount-1}{%
  \uput{6pt}[\i]{!\i\space 90 DegtoAny sub}(P\i){\psline{->}(0,12pt)}}
\end{pspicture}

\begin{pspicture}[showgrid](-.5,-.5)(2.5,3)
\psparametricplot[algebraic]{0}{1}{ t+t^2 | 2*Ex(-t)}
\end{pspicture} 

\begin{pspicture}[showgrid=b](-2,-2)(2,2)
\def\N{9 }%
\degrees[\N]
\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoDeg}{t dup cos exch sin}{P}
\psnpolygon(0,\numexpr\Pnodecount-1){P}
\foreach \i in {0,1,...,\numexpr\Pnodecount-1}{%
  \uput{6pt}[\i]{!\i\space 90 DegtoAny sub}(P\i){\psline{->}(0,12pt)}}
\end{pspicture}

\end{document} 
hvoss49 commented 3 years ago

I fixed it ...