[pstricks] ncangle variant is needed

Juergen Gilg gilg at acrotex.net
Sat Jun 23 23:55:32 CEST 2007


Hi Boris,

maybe you could try \ncbar, like

\begin{pspicture}(5,4)
  \psset{angle=90,armB=-1.5}
    \Cnode[radius=0.2](2.5,3.5){A}
    \Cnode[radius=0.2](0.5,1){B1}
    \Cnode[radius=0.4](1.5,1){B2}
    \Cnode[radius=0.6](2.6,1){B3}
    \Cnode[radius=0.8](4,1){B4}
   \ncbar{B1}{A}
   \ncbar{B2}{A}
   \ncbar{B3}{A}
   \ncbar{B4}{A}
   \Cnode[radius=0.2,fillstyle=solid,fillcolor=white](2.5,3.5){A}
 \end{pspicture}

and make the arm negative...

Seems to work.

Maybe Herbert is inspired to do that more elegantly...

Regards,

Juergen

Herbert Voss wrote:
> Boris Veytsman wrote:
>   
>> I need a variant of \ncangle, and I am afraid my PostScript skills are
>> not good enough to make it.
>>
>> I want a node connection like \ncangle, where arm B starts from the
>> edge of the node, like in the current \ncangle, BUT its length is
>> calculated from the node center rather than from the edge.
>>
>> Let me give an example.  In this picture:
>>
>> \begin{pspicture}(5,4)
>>   \cnode(2.5,3.5){0.2}{A}
>>   \cnode(0.5,1){0.2}{B1}
>>   \cnode(1.5,1){0.4}{B2}
>>   \cnode(2.6,1){0.6}{B3}
>>   \cnode(4,1){0.8}{B4}
>>   \psset{angleB=90,angleA=-90,armB=1}
>>   \ncangle{A}{B1}
>>   \ncangle{A}{B2}
>>   \ncangle{A}{B3}
>>   \ncangle{A}{B4}
>> \end{pspicture}
>>
>> the horizontal arms of the node connections are not aligned because
>> nodes Bi have different radii.  I can manually align them using
>> different values of armB:
>>   
>>     
> where is the problem, simply saing
>
>   \psset{angleB=90,angleA=-90,armA=1cm}
>
> Herbert
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>   

-- 
  jürgen gilg
  austr. 59
  70376 stuttgart

tel       0711-59 27 88
e-mail    gilg at acrotex.net
webpage   www.acrotex.net
          www.gilligan-online.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20070623/b6b704ad/attachment.html 


More information about the PSTricks mailing list