per axis autoscale_on

Hello matplotlib developers,

I found useful to autoscale just one axis.
Here is the quick noninvasive patch to illustrate the idea.
Real solution should change whole autoscale_on semantics
(get_, set_, docstrings). As I am not very familiar with
your api standards I leave it to you.

Jozef Vesely
vesely@...670...

--- axes.py.old 2008-11-22 18:15:17.000000000 +0100
+++ axes.py 2008-11-22 18:24:09.000000000 +0100
@@ -1480,6 +1480,11 @@
         """
         # if image data only just use the datalim
         if not self._autoscaleon: return

···

+
+ if iterable(self._autoscale_on):
+ scalex = scalex and self._autoscale_on[0]
+ scaley = scaley and self._autoscale_on[1]
+
         if scalex:
             xshared = self._shared_x_axes.get_siblings(self)
             dl = [ax.dataLim for ax in xshared]

Sorry mistake sneaked in, correct patch is:

--- axes.py.old 2008-11-22 18:15:17.000000000 +0100
+++ axes.py 2008-11-22 18:24:09.000000000 +0100
@@ -1480,6 +1480,11 @@
         """
         # if image data only just use the datalim
         if not self._autoscaleon: return

···

+
+ if iterable(self._autoscaleon):
+ scalex = scalex and self._autoscaleon[0]
+ scaley = scaley and self._autoscaleon[1]
+
         if scalex:
             xshared = self._shared_x_axes.get_siblings(self)
             dl = [ax.dataLim for ax in xshared]