5
$\begingroup$

I haven't been able to make this work; I want no arrowheads, but black vectors (segments). If I use

VectorPlot[{x, y}, {x, -1, 1}, {y, -1, 1}, 
    VectorStyle -> {{AbsoluteThickness[3], Arrowheads[0], Black}}]

enter image description here

I get the arrowheads.

$\endgroup$
5
  • $\begingroup$ What version are you using? I get no arrowheads in versions 9 and 11: i.stack.imgur.com/RsLNe.png $\endgroup$
    – Jason B.
    Dec 22, 2016 at 16:11
  • $\begingroup$ @JasonB I am using Mma 10! $\endgroup$ Dec 22, 2016 at 16:14
  • $\begingroup$ If you quit the kernel and run your code, do you still get the arrowheads? If so, post the graphics output here also. I just tried this on 10.3.1 and it gives the same result. $\endgroup$
    – Jason B.
    Dec 22, 2016 at 16:16
  • $\begingroup$ @JasonB i.stack.imgur.com/Au5fo.png $\endgroup$ Dec 22, 2016 at 17:46
  • $\begingroup$ I get no arrowheads using 10.1. $\endgroup$ Dec 22, 2016 at 18:13

1 Answer 1

5
$\begingroup$

In "10.0 for Mac OS X x86 (64-bit) (June 29, 2014)" I get the same result as the OP. In version 10.1 I get the correct result, so it appears the issue was fixed by then.

To remove the arrowheads in version 10.0, you can use

VectorPlot[{x, y}, {x, -1, 1}, {y, -1, 1}, 
  VectorStyle -> {{AbsoluteThickness[3], Black}}
] /. Arrow -> Line

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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