Revision: 4457
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4457&view=rev
Author:   jdh2358
Date:     2007-11-26 13:53:01 -0800 (Mon, 26 Nov 2007)

Log Message:
-----------
fixed a bug in unit processing -- thanks chris

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

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2007-11-26 19:21:23 UTC (rev 
4456)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2007-11-26 21:53:01 UTC (rev 
4457)
@@ -182,7 +182,7 @@
 
     def __call__(self, *args, **kwargs):
 
-        if self.axes.xaxis is not None and self.axes.xaxis is not None:
+        if self.axes.xaxis is not None and self.axes.yaxis is not None:
             xunits = kwargs.pop( 'xunits', self.axes.xaxis.units)
             yunits = kwargs.pop( 'yunits', self.axes.yaxis.units)
             if xunits!=self.axes.xaxis.units:
@@ -1289,6 +1289,8 @@
         if self.axison and self._frameon: self.axesPatch.draw(renderer)
         artists = []
 
+
+
         if len(self.images)<=1 or renderer.option_image_nocomposite():
             for im in self.images:
                 im.draw(renderer)
@@ -3313,7 +3315,7 @@
         self.hold(holdstate) # restore previous hold state
 
         if adjust_xlim:
-            xmin, xmax = self.dataLim.intervalx().get_bounds()  
+            xmin, xmax = self.dataLim.intervalx().get_bounds()
             xmin = npy.amin(width)
             if xerr is not None:
                 xmin = xmin - npy.amax(xerr)

Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py     2007-11-26 19:21:23 UTC (rev 
4456)
+++ trunk/matplotlib/lib/matplotlib/mlab.py     2007-11-26 21:53:01 UTC (rev 
4457)
@@ -14,10 +14,7 @@
     * find - Return the indices where some condition is true;
              numpy.nonzero is similar but more general.
 
-    * polyfit - least squares best polynomial fit of x to y
 
-    * polyval - evaluate a vector for a vector of polynomial coeffs
-
     * prctile - find the percentiles of a sequence
 
     * prepca - Principal Component Analysis
@@ -29,11 +26,14 @@
 
   The following are deprecated; please import directly from numpy
   (with care--function signatures may differ):
+
     * conv     - convolution  (numpy.convolve)
     * corrcoef - The matrix of correlation coefficients
     * hist -- Histogram (numpy.histogram)
     * linspace -- Linear spaced array from min to max
     * meshgrid
+    * polyfit - least squares best polynomial fit of x to y
+    * polyval - evaluate a vector for a vector of polynomial coeffs
     * trapz - trapeziodal integration (trapz(x,y) -> numpy.trapz(y,x))
     * vander - the Vandermonde matrix
 
@@ -46,13 +46,13 @@
 
 = record array helper functions =
 
-  rec2csv          : store record array in CSV file
-  rec2excel        : store record array in excel worksheet - required 
pyExcelerator
-  rec2gtk          : put record array in GTK treeview - requires gtk
-  csv2rec          : import record array from CSV file with type inspection
-  rec_append_field : add a field/array to record array
-  rec_drop_fields  : drop fields from record array
-  rec_join         : join two record arrays on sequence of fields
+   * rec2csv          : store record array in CSV file
+   * rec2excel        : store record array in excel worksheet - required 
pyExcelerator
+   * rec2gtk          : put record array in GTK treeview - requires gtk
+   * csv2rec          : import record array from CSV file with type inspection
+   * rec_append_field : add a field/array to record array
+   * rec_drop_fields  : drop fields from record array
+   * rec_join         : join two record arrays on sequence of fields
 
 For the rec viewer clases (rec2csv, rec2excel and rec2gtk), there are
 a bunch of Format objects you can pass into the functions that will do


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to