octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56120] Quiver scale argument has no effect wh


From: Rik
Subject: [Octave-bug-tracker] [bug #56120] Quiver scale argument has no effect when u, v arguments are scalars
Date: Thu, 11 Apr 2019 12:30:17 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #56120 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   4.4.1 => 5.1.0                  
        Operating System:       Microsoft Windows => Any                    
                 Summary: Quiver scale argument has no effect with constant
vector field => Quiver scale argument has no effect when u,v arguments are
scalars

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  Attached is a slightly different script that shows the problem is
the presentation of the u,v arguments as scalars, rather than as vectors or
matrices.  Incidentally, Matlab does not even accept the scalar input form.


close all

range = [-5:.5:5];

[xx yy] = meshgrid(range);

u = 0.4 * ones (size (xx));
v = u;

figure(1)
quiver(xx, yy, u, v, .9)
axis tight
grid on

figure(2)
quiver(xx, yy, u, v, .5)
axis tight
grid on

%% Should be identical to figure 2, but instead is unscaled and identical
%% to figure 1 because 0.9 is the default scaling
figure(3)
quiver(xx, yy, 0.4, 0.4, .5)
axis tight
grid on





(file #46748)
    _______________________________________________________

Additional Item Attachment:

File name: tst_quivsz.m                   Size:0 KB
    <https://savannah.gnu.org/file/tst_quivsz.m?file_id=46748>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56120>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]