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: Tue, 30 Jan 2024 09:51:27 -0500 (EST)

Update of bug#60588 (group octave):

             Open/Closed:                    Open => Closed                 
           Fixed Release:                    None => 9.1.0 (current stable) 

    _______________________________________________________

Follow-up Comment #3:

I just tested with Matlab and they now consistently set the "marker" to "none"
when there is one point.

This original test code,


plot (0.5, 0.5)


now produces a blank plot as does


x=(1:10)';
y=1;
plot(x,y)


which is 10 individual line objects each with one point.

I don't think we need to have perfect Matlab compatibility here.  They made a
consistent choice, but also a confusing choice.  After calling plot() one
expects to see something.  If there is nothing then I'm sure we will start to
get bug reports about the plot() command not working.  Also, if the programmer
intends to be using single point line objects they are sophisticated enough to
know how to turn off the marker, or change it, if they want.

Closing bug as fixed since the documentation change has happened.


    _______________________________________________________

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]