Fri 10 Nov 2017 12:02:37 PM UTC, comment #16:
I've attached requested output
(file #42360, file #42361)
|
Fri 10 Nov 2017 01:41:59 AM UTC, comment #15:
I've also fixed the issue where the arrowshaft was not scaled when there was just a single vector.
|
Fri 10 Nov 2017 01:40:12 AM UTC, comment #14:
I now have the arrowshaft and the angle that the arrowheads make with the arrowshaft correct, but I still can't figure out the algorithm that Matlab is using for the size of the arrowhead. New test code for Matlab is:
|
Thu 09 Nov 2017 04:47:08 PM UTC, comment #13:
I can't move forward until I see the results from Matlab for the code in comment #12.
|
Sun 05 Nov 2017 05:44:41 AM UTC, comment #12:
Actually, a better test case to run would be
|
Thu 26 Oct 2017 04:08:51 PM UTC, comment #11:
@Richard: Could you try this code?
This should produce a very clean test case without any sqrt(2) factors obscuring the algorithm.
|
Thu 26 Oct 2017 03:41:23 PM UTC, comment #10:
Thanks. It looks like Octave is correctly calculating the length of the arrowshaft, but the arrowhead is too big. At least that points towards which part of the algorithm in _quiver_.m needs modification.
|
Thu 26 Oct 2017 03:19:14 PM UTC, comment #9:
See uploaded file tstquiver2.png
(file #42272)
|
Thu 26 Oct 2017 03:16:03 PM UTC, comment #8:
Could someone with Matlab try this code?
According to the documentation for AutoScale
The idea I'm trying to check is whether AutoScale has a specific case for a single arrow (for which there is no grid).
|
Thu 26 Oct 2017 07:23:31 AM UTC, comment #7:
I would guess arrowhead size is proportional to the vector length when only drawing one arrow. See the MaxHeadSize property, defined as "Maximum size of arrowhead, specified as a scalar value in units relative to the length of the arrow."
|
Thu 26 Oct 2017 06:48:26 AM UTC, comment #6:
@Rik:
(file #42263)
|
Thu 26 Oct 2017 04:26:22 AM UTC, comment #5:
Here is the Quiver Properties:
Dmitri.
--
|
Thu 26 Oct 2017 04:25:16 AM UTC, comment #4:
Changing category back to "Need Info".
@Clark: Can you start Matlab without any user customizations and see if you get the same size figure?
@Dmitri: It could also be the case that Matlab has special logic for weird corner cases such as this one.
|
Thu 26 Oct 2017 04:17:49 AM UTC, comment #3:
If I try an example from the matlab documentation
https://www.mathworks.com/help/matlab/ref/quiver.html
I get pretty much an identical figure. I think we want a second opinion... Perhaps Clark Dunson has some custom settings?!
Dmitri.
--
|
Thu 26 Oct 2017 03:38:07 AM UTC, comment #2:
Marking as confirmed. The attached jpg from Matlab shows a much smaller arrowhead.
|
Tue 24 Oct 2017 04:12:25 PM UTC, comment #1:
What does Matlab do? Could someone run the sample code and upload the image that it produces?
For Octave, the arrowhead size is calculated at about 20% of the size of the grid. Since your grid is 1x1 this comes out to about 0.2. That looks big when the axes limits are tight in around the object, but looks okay when the view is larger. Try
|
Tue 24 Oct 2017 08:49:55 AM UTC, original submission:
Using a simple
quiver(5, 5, 1, 1)
produces an arrow whose head is too large.
|