Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to do curved arrows?

696 views
Skip to first unread message

István

unread,
Oct 7, 2009, 7:07:15 AM10/7/09
to
Dear Group,

is there a way to draw curves with arrowheads in a convenient way?
I did not find anything relevant in the doc.center, nor in the group
archives.

Istvan Zachar

Szabolcs Horvát

unread,
Oct 8, 2009, 7:51:58 AM10/8/09
to

Arrow[] is just like Line[], i.e. it can have any number of points.
Just generate the list of points for the curve, then wrap it in Arrow[].

Graphics[Arrow[{{0, 0}, {0, 1}, {1, 1}}]]

Yves Klett

unread,
Oct 8, 2009, 7:52:20 AM10/8/09
to
Hi,

Arrow[] can act as a wrapper for Line or Tube Primitives. These Lines or
Tubes can consist of arbitary segments (e.g. approximating a curve). Or
you can use Arrow[pts] directly...

Arrow[Tube[
Table[{Cos[phi], Sin[phi], .2 phi}, {phi, 0, 10,
0.1}]]] // Graphics3D

Regards,
Yves


Istv=C3=A1n schrieb:

Bill Rowe

unread,
Oct 8, 2009, 7:57:11 AM10/8/09
to
On 10/7/09 at 7:02 AM, replic...@gmail.com (Istv=C3=A1n) wrote:

>is there a way to draw curves with arrowheads in a convenient way? I
>did not find anything relevant in the doc.center, nor in the group
>archives.

It is certainly possible to draw curves with arrowheads. For example,

Show[Graphics@{Circle[{0, 0}, .5, {0, Pi/2}],
Arrow[{{.5, 0}, {.5, -.1}}, .1]}]


István

unread,
Oct 9, 2009, 7:20:22 AM10/9/09
to
Thank you all for the answers,
I should have figured the solution out by my own.
Nevertheless, it would seem convenient to me to have a more general
arrow wrapper, which would be able to make arrows (that is, attach an
arrowhead) directly from e.g. BezierCurve primitives.

Thanks again
Istvan

0 new messages