Graphics, Figures & Tablespstricks-add | Problem with Example from Documentation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Despot Despondency
Posts: 5
Joined: Sun Jul 03, 2011 10:55 am

pstricks-add | Problem with Example from Documentation

Post by Despot Despondency »

Hi,

I'm trying to compile an example from the pstricks-add documentation. In particular I'm trying to plot a curve with a tangent and normal vector at a given point. The example is on page 44 of the documentation, here is the code

Code: Select all

\begin{pspicture}(-0.5,-0.5)(7.25,7.25)
\def\Func{10 x div}
\psaxes[arrowscale=1.5]{->}(7,7)
\psplot[linewidth=2pt]{1.5}{5}{\Func}
\psplotTangent[linewidth=1.5\pslinewidth,
linecolor=red]{3}{2}{\Func}
\psplotTangent[linewidth=1.5\pslinewidth,
linecolor=blue,Tnormal]{3}{2}{\Func}
\psline[linestyle=dashed](!0 /x 3 def \Func
)(!3 /x 3 def \Func)(3,0)
\end{pspicture}
The code compiles without any errors, but the normal vector is a tangent vector and not normal.

Any ideas why this could be happening?

TAI
Attachments
tangent_line.pdf
(5.03 KiB) Downloaded 181 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: pstricks-add | Problem with Example from Documentation

Post by localghost »

Do an update.


Thorsten
Post Reply