[SciPy-Dev] add_yaxis compatibility with recent matplotlib

Adam Ever-Hadani adamhadani at gmail.com
Fri Sep 9 18:23:10 EDT 2011


In scikits/timeseries/lib/plotlib.py , around line 1185 (
http://projects.scipy.org/scikits/browser/trunk/timeseries/scikits/timeseries/lib/plotlib.py?rev=2213#L1185),

the framework relies on "private" members of the matplotlib Axis / Figure
objects (e.g _rows, _cols, _num).
These apparently no longer exist and in any case we're better off using a
public method specifically designed for accessing these values,
namely the get_geometry function. So the change to the line seems to fix the
issue for me:

.
.
fsp_alt_args = fsp.get_geometry()
.
.

This might break backward compatibility so perhaps in a nested try catch
could be achieved backward compliance..

Hope this makes sense,

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20110909/acefbb4e/attachment.html>


More information about the SciPy-Dev mailing list