efw

Below is a demonstration of the features of the efw function

Contents

Syntax

efw(hf);

Description

The efw function, the export figure widget, adds a push button to a figure toolbar to link with the export_fig function. Press the button to start exporting a figure. Users can specify file names, formats, resolution and also additional export_fig options.

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

Examples

Using the preloaded Export Figure Widget (efw) in cFigure

A cFigure window has the Export Figure Widget loaded by default. To use efw click on the icon in the toolbar.

Pressing the efw button will open a basic inputdlg allowing users to specify all the usual export_fig options. Hints are given in brackets behind the input labels. The default entries are altered according to the previous usage within the current figure.

Use with figure

The default MATLAB figure does not contain the Export Figure Widget. To load it here the user must enter efw; either before or after axes are created. e.g.:

figure; surf(peaks(25)); axis equal; axis tight; efw;

which is equivalent to:

figure; efw; surf(peaks(25)); axis equal; axis tight;

Tip

You can create your own figure function that simply contains figure; efw; to create a standard MATLAB figure containing the Export Figure Widget.

GIBBON www.gibboncode.org

Kevin Mattheus Moerman, [email protected]

GIBBON footer text

License: https://github.com/gibbonCode/GIBBON/blob/master/LICENSE

GIBBON: The Geometry and Image-based Bioengineering add-On. A toolbox for image segmentation, image-based modeling, meshing, and finite element analysis.

Copyright (C) 2017 Kevin Mattheus Moerman

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.