Skip to content

Should not look for 'XData' when type is 'rectangle' in AxesChildBounds #8

Description

@Globulle

Using Matlab 2013a, I've got the error

Error using hg.rectangle/get
The name 'XData' is not an accessible property for an instance of class 'rectangle'.

Error in plot2svg>AxesChildBounds (line 3363)
data = reshape(get(dataObjs(j), axisData{i}), [], 1);

Indeed the rectangle object has no XData property:

get(dataObjs(j))
    Annotation = [ (1 by 1) hg.Annotation array]
    Curvature = [1 1]
    DisplayName = 
    FaceColor = none
    EdgeColor = [1 0 1]
    LineStyle = -
    LineWidth = [0.5]
    Position = [25.7977 19.701 0.2 0.2]

    BeingDeleted = off
    ButtonDownFcn = 
    Children = []
    Clipping = on
    CreateFcn = 
    DeleteFcn = 
    BusyAction = queue
    HandleVisibility = on
    HitTest = on
    Interruptible = on
    Parent = [565.002]
    Selected = off
    SelectionHighlight = on
    Tag = vector_marker
    Type = rectangle
    UIContextMenu = []
    UserData = []
    Visible = off

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions