Skip to content

Exporting uifigure #261

@MarvinILA

Description

@MarvinILA

Hi,

I am trying to use the export_fig code within the Matlab App Designer. I am trying to export the figure with the following code:

export_fig(figureHandle, path2file, '-pdf', '-png', '-m1.5');

However, as I execute the code the following error is shown:

Error using matlab.ui.Figure/set
Functionality not supported with figures created with the uifigure function. For more information,
see Graphics Support in App Designer.

Error in export_fig (line 397)
        set(fig, 'InvertHardcopy', 'off');

How can I run export_fig with uifigures?

Thanks a lot!

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