13
$\begingroup$

Bug introduced in 10.0.0 and persisting through 11.0.1 or later


Consider the following code:

f[t_, y_] := t + y;
VectorPlot[(#1/Norm[#1] &)[{1, f[t, y]}], {t, -3, 3}, {y, -3, 3},
 Frame -> False, Axes -> True, AxesLabel -> {t, y},
 VectorPoints -> 11,
 VectorScale -> Tiny,
 VectorStyle -> {"Segment", GrayLevel[0.5]}
 ]

But I only get 10 by 10 vectors instead of 11 by 11. Is this a bug?

enter image description here

$\endgroup$
  • 1
    $\begingroup$ i get the expected output (11 by 11 vector points) in version 9 (Windows 8 64bit). In version 10, something strange is happening with VectorPoints->11 -- other values seem to work fine. $\endgroup$ – kglr Jan 16 '15 at 5:31
  • 2
    $\begingroup$ Try with {t, -4, 4}, {y, -4, 4}. Is the result as expected? $\endgroup$ – user9660 Jan 16 '15 at 8:20
  • 1
    $\begingroup$ Desired result in v8.0.4 and v9.0.1. I think it's reasonable to consider it as a bug. $\endgroup$ – xzczd Jan 17 '15 at 3:43
  • $\begingroup$ Interestingly this works on 10.0.1 but is broken again on 10.0.2 $\endgroup$ – Gordon Coale Jan 19 '15 at 8:20
  • $\begingroup$ related 73950. $\endgroup$ – Kuba Feb 28 '16 at 9:49

Your Answer

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

Browse other questions tagged or ask your own question.