Export Setup

Features:

Customizes figures and interfaces before saving.

The example below shows how to use the EXPORT SETUP window to customize a figure before saving. It shows how to change the figure size, background color, font size, and line width. It also shows how to save the settings and apply them to other figures and toolboxes before saving them.

Set the figure size by clicking File → Export Setup. In the toolboxes, this function is located in the Export → Export Setup.

Set Figure Size

Specify the desired dimensions in the Width and Height fields, for example 5-by-4 inches. The dimensions include the entire interface window except for the frame, title bar, menu bar, and any tool bars. If the specified width and height are too large, then the figure might not reach the specified size.

To make the axes fill the figure, select Expand axes to fill figure.

Click Apply to Figure. Applying the settings changes the appearance of the Interface figure on the screen. All settings from the EXPORT SETUP dialog are applied to the figure. Thus, more than just the figure size can change. For example, by default, IDCubePro® converts the background color of the saved figure to white.

Set Figure Background Color

Set the figure background color by clicking the Rendering property in the EXPORT SETUP window. In the Custom color field, specify either a color name from the table or an RGB triplet. For example, set the background color to yellow by typing ‘y’ in the custom color field.

An RGB triplet is a three-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0,1], for example, [0.4 0.6 0.7]. This table lists some common RGB triplets that have corresponding color names. To specify the default gray background color, uncheck the Custom color checkbox.

Set Figure Font Size and Line Width

Change the font by clicking the Fonts property. Specify a fixed font size and select a font name, font weight, and font angle. For example, use default font. The tick mark locations might change to accommodate the new font size.

Change the line width by clicking the Lines property. Specify a fixed line width, for example, 2 points.

Click Apply to Figure on the right side of the Export Setup dialog.

Save Figure to File

Save the figure to a file by first clicking Export, and then specifying a file name, location, and desired format. For more information about file formats, see the following chapter Save Interface Image As…

Save Figure Settings for Future Use

Save your settings to use for other figures (i.e., toolboxes) by creating an export style. In the Export Styles section, type a style name, for example MyCustomSettings. Then, click Save.

Apply Settings to Another Figure

Apply your settings to another figure by opening the Export Setup box from its figure menu. In the EXPORT STYLES section, select the style name and click Load. Next, click Apply to Figure on the right side of the Export Setup dialog. MATLAB applies the saved style settings to the figure.

Restore Figure to Original Settings

Restore the figure on the screen to the original settings by clicking Restore Figure.

Previous
Previous

Download Example Files

Next
Next

Copy Interface View