Mike,

John's mention of an upcoming bugfix release brought to mind a glitch in 
0.98: the default position of the polar plot title is too low (as is the 
default position of the title on an ordinary plot with tick_top()).

It looks like you were working on this with your autoLayout option, but 
when I try enabling that, I get (last part of traceback only, and for 
the Cartesian axes case):

/usr/local/lib/python2.5/site-packages/matplotlib/axes.pyc in 
update_layout(self, renderer)
    1421         x0, y0, x1, y1 = self.get_position(True).extents
    1422         # Adjust the title
-> 1423         self.titleOffsetTrans.clear().translate(
    1424             0, original_t_text + pad_pixels * 2.0)
    1425

AttributeError: 'ScaledTranslation' object has no attribute 'clear'


It looks like this would be prevented if ScaledTranslation were 
reformulated to inherit from Affine2D instead of Affine2DBase.

Is this the right solution?

Regardless of the status of the autoLayout code, I thought it would be 
nice to improve the default title behavior of the polar_demo, at least.

Please let me know if you would like to do it, or if you would prefer 
that I continue looking into it.

Thanks.

Eric


-------------------------------------------------------------------------
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to