bugGNU Octave - Bugs: bug #55993, shading fails when...


bug #55993: shading fails when kids=get(parents,"children") returns a cell instead of ghandle

Submitted by:  None
Submitted on:  Mon 25 Mar 2019 01:37:04 AM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  5.1.0
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 27 Mar 2019 07:01:43 PM UTC, comment #1: 

Confirmed that this is a problem.  I fixed this here (https://hg.savannah.gnu.org/hgweb/octave/rev/1e5dde93eb26) on the stable branch.  It will be a part of the next bug fix minor release (5.2.0).

Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Mon 25 Mar 2019 01:37:04 AM UTC, original submission:  

if a figure is filed with a surface and 2 other quiver3 plots for example, shading returns the error.

error: octave_base_value::array_value(): wrong type argument 'cell'
error: get: H must be a graphics handle

It happens in this part of shading line 66 to 82

hlist = [];
  kids = get (hax, "children");
  while (! isempty (kids))
    types = get (kids, "type");
    hlist = [hlist; kids(strcmp(types, "patch"))];
    hlist = [hlist; kids(strcmp(types, "surface"))];
    parents = kids(strcmp (types, "axes"));
    hglist = kids(strcmp (types, "hggroup"));
    for i = 1 : numel (hglist)
      props = get (hglist(i));
      if (! isfield (props, "levelstep"))
        parents(end+1) = hglist(i);
    kids = get (parents, "children");

from what i have been able to figure out, for 2 or more quiver3 plots, 2 hggroups are created and found in

hglist = kids(strcmp (types, "hggroup"));

The for loop puts them in parents making parents a array
and get returns a cell of "children"(graphics handles)? to kids.
At the beginning of the while loop
types = get (kids, "type");
fails because get cant handle a cell, only arrays of graphics handles?



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-27 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
        Release4.4.1 => 5.1.0
        Operating SystemMicrosoft Windows => Any

    Back to the top

    Powered by Savane 3.7