[pstricks] Normal arrows along a curve

James OtterzStuff at Bellsouth.net
Sun Aug 1 20:27:15 CEST 2010


On 7/30/2010 3:10 PM, Herbert Voss wrote:
> Am 30.07.2010 17:16, schrieb James:
>
>    
>> Assuming I could draw with the symbols, I may be able to draw the figure
>> twice, once with a dotted line, and again with outward facing pipes or
>> arrow symbols to get the effect - but I had no luck.
>>
>> If I get more time, I would like to look into what you referred too.
>>      
> maybe \psplotTangent is an option. See documentation
> of pstricks-add
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
>    
I took another look at the pstricks-add document, turns out I was 
looking at an old version. Using the (real) latest version, the 
parametric plot stuff worked fine, and actually works like I was 
wishing/hoping it would. I do need to define a better looking parametric 
plot, since right now I am just using a circle. But this code is what I 
am using, and if I get obsessive compulsive enough, I want to tweek the 
number of tick lines so that it scales (down) better.


\scalebox{1.0} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,0)(4,4)
     \psparametricplot[plotpoints=100,linewidth=0.04]{90}{270}{t cos 1 
add 1.5 mul t sin 1 add 1.5 mul}
     
\psparametricplot[plotpoints=100,linewidth=0.04,linestyle=dotted,dotsep=0.16cm]{270}{450}{t 
cos 1 add 1.5 mul t sin 1 add 1.5 mul}
     \pscurvepoints[plotpoints=100]{270}{450}{t cos 1 add 1.5 mul t sin 
1 add 1.5 mul}{P}%
     \pspolylineticks[Os=0,Ds=0.22,ticksize=0 0]{P}%
     { ds }{0}{22}% distance
     
\multido{\i=0+1}{22}{\psrline[arrows=->,arrowscale=1.0,linewidth=0.03](PTick\i)(-7pt;{(PNormal
\i)})}%
\usefont{T1}{ptm}{m}{n}
\rput(0.1,2.8){$\partial{\Omega}_D$}
\usefont{T1}{ptm}{m}{n}
\rput(3.0,-0.05){$\partial{\Omega}_N$}
\usefont{T1}{ptm}{m}{n}
\rput(1.6,1.5){$\Omega$}
\end{pspicture}
}


Thanks for your help, and if you have an critiques, I'd love them.


More information about the PSTricks mailing list