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

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

[Octave-bug-tracker] [bug #55993] shading fails when kids=get(parents, "


From: anonymous
Subject: [Octave-bug-tracker] [bug #55993] shading fails when kids=get(parents, "children") returns a cell instead of ghandle
Date: Sun, 24 Mar 2019 21:37:05 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:65.0) Gecko/20100101 Firefox/65.0

URL:
  <https://savannah.gnu.org/bugs/?55993>

                 Summary: shading fails when kids=get(parents,"children")
returns a cell instead of ghandle
                 Project: GNU Octave
            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
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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);
      endif
    endfor
    if 
    kids = get (parents, "children");
  endwhile


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
verbatim+
types = get (kids, "type");

fails because get cant handle a cell, only arrays of graphics handles?




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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