The Export Figure Widget creates a basic toolbar button to export figures using export_fig. Pressing the button opens an inputdlg to enter options for export_fig.
The Export Figure Widget requires the external function |export_fig| created by Oliver Woodford and Yair Altman. It can be obtained from the Mathworks Central File Exchange:
http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig
See also: export_fig, vcw
Kevin Moerman (2021). Export Figure Widget (efw) (https://www.mathworks.com/matlabcentral/fileexchange/50678-export-figure-widget-efw), MATLAB Central File Exchange. Retrieved .
Inspired by: export_fig
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Thanks Yair. That sounds good.
I use this within a custom figure function (called cFigure). It has the efw widget (and also the vcw widget) loaded by default so the buttons are always there.
I think the best thing would be a gui that opens on button click with pull down options for image format etc. and options that are excluded if for instance a particular format is chosen. This gui should also have a proper browse button to set the path etc. (browsing is now used if you leave path empty)... but I kept it simple for now :)
Kevin
Nice idea! I might incorporate this idea in a future version of export_fig, it seems really useful. (I did a similar thing with my ScreenCapture utility, which has an option to install a toolbar icon).