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

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

[Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" c


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error
Date: Tue, 16 Jan 2018 13:36:46 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

Update of bug #52904 (project octave):

        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #8:

Matlab R2016a:

>> Z = logical (ones (25,25));
>> h = mesh (Z);
Error using matlab.graphics.chart.primitive.Surface/set
While setting the 'ZData' property of 'Surface':
Value must be a scalar, vector or array of numeric type

Error in matlab.graphics.chart.internal.ctorHelper (line 6)
      set(obj, pvpairs{:});

Error in matlab.graphics.chart.primitive.Surface

Error in mesh (line 100)
    hh =
matlab.graphics.chart.primitive.Surface('ZData',z,'FaceColor',fc,'EdgeColor','flat',
...
 
>> get(gca, 'Children')

ans = 

  0x0 empty GraphicsPlaceholder array.


Again, a figure with empty axes appears. I added the last command to make
completely sure that there isn't anything in that axes.

I think I prefer your option 2) in this case. The validation is already done
in graphics.cc. I don't think that we should multiply each test in each .m
file. If an error occurs during object construction however, the object should
not be returned or added to its parent.
That said I still think that there can be cases where we should validate input
in the .m files.

I tried the example from comment #5 on Windows with 4.2.1 and an old 4.3.0+
(from April last year!): both crashed at "h = surf (Z);". Will try with a
newer 4.3.0+ later.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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