How can I draw arrows at both and of a line?
Daniel Nettels
no but you can draw two arrows
with oposite directions
Needs["Graphics`Arrow`"]
Show[
Graphics[
{Arrow[{0, 0}, {1, 1}],
Arrow[{1, 1}, {0, 0}]}]]
Regards
Jens
points = {{1, 1}, {3, 1}, {5, 5}};
<< "Graphics`Arrow`"
arr[liste_] := {Arrow[liste[[-2]], liste[[-1]]],
Arrow[liste[[2]], liste[[1]]]}
Show[Graphics[arr[points]]];
Meilleures salutations
Florian Jaccard
-----Message d'origine-----
De : Daniel Nettels [mailto:Daniel....@unifr.ch]
Envoyé : mar., 8. avril 2003 09:03
À : math...@smc.vnet.net
Objet : arrows at both ends of a line?
Several people suggested me to draw to opposit arrows of same length.
However this does not give a nice result, since now the tip of one
arrow is superposed with the recatangular end of the other.
This becomes apparent if one increase the thickness of the line as in
the following example:
points={{1,1},{3,1}};
<<"Graphics`Arrow`"
arr[liste_]:={Arrow[liste[[-2]],liste[[-1]]],Arrow[liste[[2]],liste[[1]]]}
Show[Graphics[{AbsoluteThickness[10],arr[points]}]];
Thanks for further help.
Daniel
Use the standard package Graphics`Arrow`
German Buitrago A.
Manizales, Colombia
>How can I draw arrows at both and of a line?
Try
<< Graphics`Arrow`;
Show[Graphics[Line[{{0, 0}, { 0, 1}}]],
Epilog -> {Arrow[{0, .9}, {0, 1}], Arrow[{0, .2}, {0, 0}]}];