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

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

[Octave-bug-tracker] [bug #60588] Vector/scalar combination in plotting


From: Rik
Subject: [Octave-bug-tracker] [bug #60588] Vector/scalar combination in plotting not well documented
Date: Wed, 12 May 2021 11:38:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Update of bug #60588 (project octave):

                Category:                Plotting => Documentation          
                Priority:              5 - Normal => 3 - Low                
                 Release:                   6.1.0 => dev                    
                 Summary: Vector/scalar combination in plotting =>
Vector/scalar combination in plotting not well documented

    _______________________________________________________

Follow-up Comment #1:

I think this can be documented more clearly, but the behavior should probably
stay Matlab-compatible.

For the sample code, Matlab produces 10 line objects.  The "LineStyle"
property is '-' and the "Marker" property is 'none'.

Octave does nearly the same thing.  It creates 10 line objects with
"LineStyle" = '-'.  However, the "Marker" property is '.' which thus at least
displays the points.

Interestingly, I'm pretty sure this is a change in behavior for Matlab.  I
remember that Octave had to introduce a special case for one point like this


plot (0.5, 0.5)


so that the "Marker" property would be '.' rather than the default of "none". 
That it still the case.  This code


h = plot ([0 1], [0 1])
get (h, 'marker')


is not special-cased because it has more than one point and the "Marker" is
"none".

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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