Yscale: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 1: Line 1:
===Purpose===
===Purpose===
Rescale the y-axis limits on each subplot in a figure.
Rescale the y-axis limits on each subplot in a figure.
===Synopsis===
===Synopsis===
:yscale(infscale,xrange,allaxes)
:yscale(infscale,xrange,allaxes)
:ax = yscale(infscale,xrange,allaxes)
:ax = yscale(infscale,xrange,allaxes)
===Description===
===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.
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.
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.
The optional third input allaxes rescales the specified axis or axes handles. Default is to rescale all axes.

Revision as of 15:27, 3 September 2008

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.