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

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

[Octave-bug-tracker] [bug #43391] stem() gives an error if passed the re


From: anonymous
Subject: [Octave-bug-tracker] [bug #43391] stem() gives an error if passed the result of a logical expression
Date: Thu, 09 Oct 2014 15:36:02 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/7.1 Safari/537.85.10

URL:
  <http://savannah.gnu.org/bugs/?43391>

                 Summary: stem() gives an error if passed the result of a
logical expression
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 09 Oct 2014 03:36:01 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Mac OS

    _______________________________________________________

Details:

When the result of a logical expression is passed to stem as the y argument
this error occurs:

n = -10:10;
x = n >= 2;
stem(n, x);
error: invalid value for array property "ydata"
error: called from:
error:  
/usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/draw/private/__stem__.m at
line 135, column 7
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/draw/stem.m at line
127, column 8

The strange thing is that the graph gets plotted correctly, but the execution
of the program stops.
If you do this:

stem(n, 1*x)

no error occurs.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43391>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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