Yscale: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Jeremy
No edit summary
Line 1: Line 1:
===Purpose===
===Purpose===


Line 6: Line 5:
===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 <tt>infscale</tt>, 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 <tt>xrange</tt> 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 <tt>ax</tt> 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 <tt>allaxes</tt> rescales the specified axis or axes handles. Default is to rescale all axes.

Revision as of 13:12, 10 October 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.