Turning Off Autoscaling

Another newbie question... I want to explicitly set the

    > maximum x and y ranges for my plot and don't want them
    > scaled down. What is the best way to do this?

To control the x and y ranges, see the xlim, ylim and axis commands in
pylab, or the ax.set_xlim and ax.set_ylim commands in the API.

To turn off autoscaling, set the "autoscale_on" property of the axes
at axes creation time with a kwarg

  ax = subplot(111, autoscale_on=False)

or after an axes is created with a set method


This property was introduced in matplotlib-0.82, so you need the
latest version for it to work.