Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Globulle opened this issue Jul 1, 2015 · 2 comments

Comments

@Globulle
Copy link

Globulle commented Jul 1, 2015

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
@nazikus
Copy link

nazikus commented Nov 2, 2015

The same problem. Matlab2015a

Error using matlab.graphics.primitive.Rectangle/get
There is no XData property on the Rectangle class.

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

Error in plot2svg>get_projection (line 3166)
[xinfi, yinfi, zinfi] = AxesChildBounds(ax);

Error in plot2svg>axes2svg (line 821)
[projection,edges] = get_projection(ax,id);

Error in plot2svg (line 287)
        group=axes2svg(fid,id,ax(j),group,paperpos);

Error in PlotGrid (line 237)
                plot2svg(fullfile(out, [FileName '.svg']), fig_h, 'png');

@kupiqu
Copy link

kupiqu commented Nov 26, 2018

just wanted to let you know about the first release of fig2svg:

https://github.com/kupiqu/fig2svg

please give it a try and if the issue is still there please report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants