Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Child pages (Children Display)

Tidying Figure Axes and Other Options

There are a couple of functions that can apply common settings to all axes in open, numbered figures (i.e., figures that have "Figure 1/2/3..." at the start of their name).

fig_numberedfigures_axesoptions

At the MATLAB command, type

>>editĀ fig_numberedfigures_axesoptions

This line changes the Y axes min and max

options.axis_propval{end+1}.property = 'YLim';
options.axis_propval{end}.value = [-1.5 3.5];

Save the file. To apply, open all the figures you want to adjust, in the same instance of MATLAB. Then run the function by typing at the command prompt:

>>fig_numberedfigures_axesoptions

All the axes in the open figures will be set to the new range.

Utilities Topics

Child pages (Children Display)