Yscale

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Rescale the y-axis limits on each subplot in a figure.

Synopsis

yscale(infscale,xrange,allaxes)
ax = yscale(infscale,xrange,allaxes)

Description

Each axes on a subplot is rescaled so that the y-scale tightly fits the maximum and minimum of the displayed data. The input infscale, when set to 1 (one), also rescales each line object on each axes to tightly fit the new limits (i.e. inf-scales each line object relative to one another). Default is 0 scale axis to data. The input xrange uses the specified x-axis range for scaling rather than the current axis settings.

If the single output ax is requested, the plots are not rescaled, but the axis which would have been used is returned.

The optional third input allaxes rescales the specified axis or axes handles. Default is to rescale all axes.

See Also