Revision: 5493
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5493&view=rev
Author:   mmetz_bn
Date:     2008-06-12 12:35:41 -0700 (Thu, 12 Jun 2008)

Log Message:
-----------
avoid accessing private member (was introduced with double-zoom patch)

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/axes.py
    trunk/matplotlib/lib/matplotlib/backend_bases.py

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2008-06-12 19:30:00 UTC (rev 
5492)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2008-06-12 19:35:41 UTC (rev 
5493)
@@ -5653,7 +5653,15 @@
         ax2.xaxis.set_label_position('top')
         self.xaxis.tick_bottom()
         return ax2
+    
+    def get_shared_x_axes(self):
+        'Return a copy of the shared axes Grouper object for x axes'
+        return self._shared_x_axes
 
+    def get_shared_y_axes(self):
+        'Return a copy of the shared axes Grouper object for y axes'
+        return self._shared_y_axes
+
     #### Data analysis
 
     def hist(self, x, bins=10, range=None, normed=False, cumulative=False,
@@ -5662,8 +5670,8 @@
         """
         call signature::
 
-          hist(x, bins=10, normed=False, cumulative=False,
-               bottom=None, histtype='bar', align='edge',
+          hist(x, bins=10, range=None, normed=False, cumulative=False,
+               bottom=None, histtype='bar', align='mid',
                orientation='vertical', rwidth=None, log=False, **kwargs)
 
         Compute the histogram of x. The return value is (n, bins, patches) or
@@ -5673,7 +5681,6 @@
         Keyword arguments:
 
           bins:
-
             either an integer number of bins or a sequence giving the
             bins.  x are the data to be binned. x can be an array or a
             2D array with multiple data in its columns.  Note, if bins
@@ -5884,8 +5891,8 @@
                 raise ValueError, 'invalid orientation: %s' % orientation
 
         elif histtype.startswith('step'):
-            x = np.zeros( 2*len(bins), np.float_ )
-            y = np.zeros( 2*len(bins), np.float_ )
+            x = np.zeros( 2*len(bins), np.float )
+            y = np.zeros( 2*len(bins), np.float )
 
             x[0::2], x[1::2] = bins, bins
 

Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backend_bases.py    2008-06-12 19:30:00 UTC 
(rev 5492)
+++ trunk/matplotlib/lib/matplotlib/backend_bases.py    2008-06-12 19:35:41 UTC 
(rev 5493)
@@ -1767,8 +1767,8 @@
             twinx, twiny = False, False
             if last_a:
                 for la in last_a:
-                    if a._shared_x_axes.joined(a,la): twinx=True
-                    if a._shared_y_axes.joined(a,la): twiny=True
+                    if a.get_shared_x_axes().joined(a,la): twinx=True
+                    if a.get_shared_y_axes().joined(a,la): twiny=True
             last_a.append(a)
 
             if twinx:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to