[pstricks] direction of vector valued function

Hamed Al-Sulami hhaalsalmi at kau.edu.sa
Wed Apr 22 09:58:15 CEST 2009


Is there a way to draw an arrows on the graph of vector valued function

To indicate the curves orientation batter than the one of doing in the
following example.

 

\documentclass[a4paper]{article}

\usepackage[margin=1cm]{geometry}

\usepackage{pst-solides3d,bm}

\usepackage{pstricks}

\usepackage{pstricks-add}

\pagestyle{empty}

\definecolor{APBcreme}{rgb}{0.91,0.73,0.54}

\definecolor{APBdarkgreen}{rgb}{0.00,0.33,0.28}

\definecolor{APBoceanblue}{rgb}{0.00,0.20,0.74}

\begin{document}

\psset{unit=0.7}

\begin{pspicture}(-10,-2)(8,8)

\psset[pst-solides3d]{viewpoint=10 10 10,Decran=30,lightsrc=20 20 -20}

\psset{solidmemory}

\defFunction[algebraic,arrows=->]{fu}(t){sin(t)/t}{(1-t)^(1/2)}{t}

\psSolid[object=courbe,

range=-2 1,

r=0,

ngrid=150 8,

linewidth=2\pslinewidth,

linecolor=blue!40,

opacity=.6,

fillcolor=blue,

function=fu]

\psSolid[object=point,

linecolor=gray,

dotstyle=o,

args=1 1 0]

\psSolid[object=vecteur,

linecolor=green,

args=1 1 0]

\psline[linecolor=blue,linewidth=2pt,linestyle=none,ArrowInside=->,ArrowInsi
dePos=0.25]{-}(-.7,.5)(-1,.7)

%\psSolid[object=vecteur,

%linecolor=green,

%args=1 Sin 0 1]

\axesIIID(1,1,1)(2,2.3,2)

\composeSolid

\end{pspicture}

\end{document}

 

Thanks for your help.

 

Hamed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090422/0b5490a3/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://tug.org/pipermail/pstricks/attachments/20090422/0b5490a3/attachment.pl 


More information about the PSTricks mailing list