Printing and Exporting Figures with MATLAB    

Example - Fine-Tuning a Figure

This example shows how you might fine tune a figure for printing by setting the renderer, retaining the background color, and locking the axes ticks and limits.

This example first shows how to make the settings using the user interface, then by using MATLAB commands.

Using the User Interface

  1. Create a figure using the following code.
  2. From the figure window's Edit menu, select Figure Properties. This invokes the Property Editor, which displays a set of panels associated with the figure.
  3. You can change the set of panels displayed in the Property Editor by clicking on different areas in your figure window. Click outside the axes. Select Yellow from the Background Color list box. Click Apply.
  4. From the figure window's File menu, select Page Setup. This invokes the Page Setup dialog box.
  5. Open the Axes and Figure tab. Select Keep screen limits and ticks so that MATLAB will not rescale the limits and ticks when you print or export the figure.
  6. Select Keep screen background color so that MATLAB will not invert the background to white when you print or export the figure.
  7. Select OpenGL from the Figure Renderer scroll list. This will use a bitmap approach to rendering the figure, which is suitable for a figure of this complexity.
  8. Click OK to save the settings with the figure.

The following picture illustrates the results.

Using MATLAB Commands

Here's how to make the same settings using MATLAB commands.

  1. Create the figure.
  2. Set the figure background color to yellow.
  3. Prevent MATLAB from changing the background color to white in the output.
  4. Prevent MATLAB from rescaling your ticks when your output the figure.
  5. Set the renderer to OpenGL.

 Creating CMYK Output Exporting