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

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

[Octave-bug-tracker] [bug #60513] contour hggroup does not have hidden "


From: Rik
Subject: [Octave-bug-tracker] [bug #60513] contour hggroup does not have hidden "facecolor" property like Matlab
Date: Mon, 10 May 2021 19:23:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36

Update of bug #60513 (project octave):

              Item Group: Unexpected Error or Warning => Matlab Compatibility 
 
                  Status:                    None => Confirmed              
                 Release:                   6.2.0 => dev                    
                 Summary: meshc error applying property to hggroup when trying
to apply property to underlying surface plot => contour hggroup does not have
hidden "facecolor" property like Matlab

    _______________________________________________________

Follow-up Comment #2:

This is just a weirdness of Matlab.  In Matlab, the contour plot is contained
in a contour object.  The list of properties for that object is
https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.contour-properties.html.

If you create such an object and then query it there is no 'FaceColor'
property.


[X, Y] = meshgrid (linspace (-3, 3, 40));
Z = sqrt (abs (X .* Y)) ./ (1 + X.^2 + Y.^2);
[~, hc] = contour (X,Y,Z);
get (hc)


On the other hand, you can directly query the property with


get (hc, 'facecolor')


or set it with


set (hc, 'facecolor', 'r')


Matlab seems to ignore setting the facecolor, so maybe it is enough to just
add a 'facecolor' property to Octave's contour hggroup which doesn't do
anything.  That would be a 1-line addition of an addproperty() call in
__contour__.m.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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