Revision: 5085
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5085&view=rev
Author:   efiring
Date:     2008-04-28 00:36:37 -0700 (Mon, 28 Apr 2008)

Log Message:
-----------
removed dead code from end of colorbar.py

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/colorbar.py

Modified: trunk/matplotlib/lib/matplotlib/colorbar.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colorbar.py 2008-04-28 07:24:33 UTC (rev 
5084)
+++ trunk/matplotlib/lib/matplotlib/colorbar.py 2008-04-28 07:36:37 UTC (rev 
5085)
@@ -667,36 +667,3 @@
     '''  % make_axes_kw_doc
 
 
-'''
-The following does not work correctly.  The problem seems to be that
-the transforms work right only when fig.add_axes(rect) is used to
-generate the axes, not when the axes object is generated first and
-then fig.add_axes(ax) is called.  I don't understand this. - EF
-
-class ColorbarAxes(axes.Axes):
-    def __init__(self, parent, **kw):
-        orientation = kw.setdefault('orientation', 'vertical')
-        fraction = kw.pop('fraction', 0.15)
-        shrink = kw.pop('shrink', 1.0)
-        aspect = kw.pop('aspect', 20)
-        self.cbkw = kw
-        pb = transforms.PBox(parent.get_position())
-        if orientation == 'vertical':
-            pb1, pbcb = pb.splitx(1.0-fraction)
-            pbcb.shrink(1.0, shrink).anchor('C')
-            anchor = (0.3, 0.5)
-            panchor = (0.8, 0.5)
-        else:
-            pbcb, pb1 = pb.splity(fraction)
-            pbcb.shrink(shrink, 1.0).anchor('C')
-            aspect = 1.0/aspect
-            anchor = (0.5, 0.2)
-            panchor = (0.5, 0.8)
-        parent.set_position(pb1)
-        parent.set_anchor(panchor)
-        fig = parent.get_figure()
-        axes.Axes.__init__(self, fig, pbcb)
-        fig.add_axes(self)
-        self.set_aspect(aspect, anchor=anchor, adjustable='box')
-
-'''


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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to