5
$\begingroup$

Bug introduced in 11.3 and fixed in version 13.0.0


Why when I use:

Graphics3D[{Red, Arrowheads[0.1],Arrow[Tube[{{1, 1, -1}, {2, 2, 0}, {3, 3, -1}, {4, 4, 0}}, 0.05]]}]

which I copied from the wolfram website the arrow head doesn't seem to be at the end of the arrow's shaft. Anyway to correct that? Even in the wolfram documentation the arrow is displayed in the same way. The picture bellow is for both their output and mines

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ use the second argument of Arrow with a negative value: Arrow[Tube[{{1, 1, -1}, {2, 2, 0}, {3, 3, -1}, {4, 4, 0}}, 0.05],-.2]? $\endgroup$
    – kglr
    Jul 28, 2018 at 15:04
  • $\begingroup$ That worked, thanks! not sure what that argument is doing though. $\endgroup$
    – Mac
    Jul 28, 2018 at 15:08
  • $\begingroup$ I looked back at older notebooks where I had PDF exports to compare to. The arrows looked fine there. But in version 11.3 I see the issue reported here in all arrows with tubes. So this must be a bug. $\endgroup$
    – Jens
    Jul 30, 2018 at 3:03

1 Answer 1

3
$\begingroup$

Using Arrow with a negative setback value in the second argument:

Graphics3D[{Red, Arrowheads[0.1], 
  Arrow[Tube[{{1, 1, -1}, {2, 2, 0}, {3, 3, -1}, {4, 4, 0}}, 0.05],-.2]}]

enter image description here

$\endgroup$
4
  • 2
    $\begingroup$ Note that the setback parameter can be provided as a list: {s1,s2} where the first one applies to the beginning (tail) of the arrow and the second applies to the end (head) of the arrow. If you only supply one value, that value is applied to both ends. $\endgroup$
    – user7739
    Jul 28, 2018 at 16:22
  • $\begingroup$ Good points, thank you @user7739. $\endgroup$
    – kglr
    Jul 28, 2018 at 16:36
  • $\begingroup$ Should we add the bug tag to the question? $\endgroup$
    – Jens
    Jul 29, 2018 at 14:49
  • $\begingroup$ @Jens, yes, it does look like a bug. $\endgroup$
    – kglr
    Jul 30, 2018 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.