Autoscale

Auto scaling may be set on the X and/or Y axis. The default is to autoscale both axes.

If autoscaling of the Y axis is set, the Y axis is automatically scaled to fit the range of the function or data being plotted. If autoscaling of the Y axis is not set, the current Y range is used. See set yrange.

If autoscaling of the X axis is set, the X axis is automatically scaled to fit the range of the data being plotted. Autoscaling of the X axis will operate only on data. Functions do not affect the X range and the range used for functions is determined by the data plots. See set xrange.

Syntax:

        set autoscale <axes>
        set noautoscale <axes>
        show autoscale

where <axes> is either x, y, or xy. If <axes> is not given then both axes are assumed.

Examples:

These set autoscaling of the Y axis. X axis autoscaling not affected.

        set autoscale y

This sets autoscaling of the X and Y axes.

        set autoscale xy
        set autoscale

This disables autoscaling of the X and Y axes.

        set noautoscale
This disables autoscaling of the X axis only.
        set noautoscale x