[pstricks] pstricks-add and the \psplotTangent* command
Jacques RUBIN
jac.rub at gmail.com
Fri Feb 19 16:09:54 CET 2016
Hi!
I made the following code which works fine with PSTricks and the multido
package.
But..., in the "pstricks-add" documentation, it is written that the star
version \psplotTangent* of the command \psplotTangent plots only the
tangent line in the positive x-direction. But that is wrong. It plots
only the tangent line in the positive y-direction instead, and it makes
this command completely unusable. It is really a bug.
Could it be rapidly corrected?
Best regards
Jacques
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\begin{pspicture}
%
\psset{unit=1}
%
\psparametricplot[algebraic,arrows=->,arrowsize=4pt 2,linecolor=blue]%
{1.4}{10.6}{(t^2)/9 | sin(t)+1}%
%
\pscurvepoints{2}{11}{(t^2)/9 | sin(t)+1}{P}%
\pspolylineticks[metricInitValue=1,ticksize=-2pt 2pt,%
Os=1,Ds=.2,linecolor=red]{P}{ ds }{1}{66}
%
\pspolylineticks[metricInitValue=1,Os=1,Ds=2,linewidth=1pt,ticksize=-4pt 4pt,%
linecolor=Green!40]{P}{ ds }{0}{7}%
\multido{\iA=1+1,\iB=3+2}{6}{%
\uput{6pt}[d](PTick\iA){\tiny \iB}%
}
%
\def\P{sin(sqrt(9*x))+1}
\def\Pd{cos(sqrt(9*x))*0.5*sqrt(9/x)}
\multido{\n=1+2}{6}{\psplotTangent*[algebraic,%
arrows=->,linecolor=orange,linewidth=.5pt,Derive=\Pd]{\n}{1}{\P}}
%
\uput{13pt}[r]{0}(PTick66){ $s$ }
%
\end{pspicture}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20160219/83ec94ba/attachment.html>
More information about the PSTricks
mailing list