Revision: 7062
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7062&view=rev
Author:   leejjoon
Date:     2009-04-24 15:23:57 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
axes_grid minor update.

Modified Paths:
--------------
    trunk/matplotlib/lib/mpl_toolkits/axes_grid/__init__.py
    trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_rgb.py

Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/__init__.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/__init__.py     2009-04-23 
14:22:27 UTC (rev 7061)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/__init__.py     2009-04-24 
15:23:57 UTC (rev 7062)
@@ -2,7 +2,7 @@
 AxesGrid
 """
 
-
+import axes_size as Size
 from axes_divider import Divider, SubplotDivider, LocatableAxes, \
      make_axes_locatable
 from axes_grid import AxesGrid

Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_rgb.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_rgb.py     2009-04-23 
14:22:27 UTC (rev 7061)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_rgb.py     2009-04-24 
15:23:57 UTC (rev 7062)
@@ -8,12 +8,10 @@
 
     divider = make_axes_locatable(ax)
 
-    pad_size = Size.Fraction(Size.AxesY(ax), pad)
+    pad_size = Size.Fraction(pad, Size.AxesY(ax))
 
-    xsize = Size.Fraction((1.-2.*pad)/3.,
-                          Size.AxesX(ax),)
-    ysize = Size.Fraction((1.-2.*pad)/3.,
-                          Size.AxesY(ax))
+    xsize = Size.Fraction(Size.AxesX(ax), (1.-2.*pad)/3.)
+    ysize = Size.Fraction(Size.AxesY(ax), (1.-2.*pad)/3.)
 
     divider.set_horizontal([Size.AxesX(ax), pad_size, xsize])
     divider.set_vertical([ysize, pad_size, ysize, pad_size, ysize])


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to