I'll let Andrew and JJ fill in some color, since they wrote the spine
and axes_grid, respectively, but both are good. The spines are in the
mainline and JJ's solution is in a toolkit, so when in doubt go with
something in the mainline since that is more likely to be stable.
Both JJ and Andrew will be attending the scipy sprint this year (if
you're going to be there be sure to stop by), and one of the items on
our agenda is to incorporate their work into a unified API in the
mainline. So there may be some changes to one or both approaches, but
hopefully soon we will have most of the feature set of both in our
main axis code.
JDH
···
On Sun, Aug 2, 2009 at 2:14 AM, <jason-sage@...2130...> wrote:
I'm trying to understand some of the changes in 0.99, for example, the
recommended way of getting a plot so that the axes cross at the origin
(i.e., the axes are in the middle of the plot). I see two examples that
seem to give this:
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
http://matplotlib.sourceforge.net/examples/axes_grid/simple_axisline2.html
Is one or the other of these methods the recommended way to get a plot
with axes in the middle that cross at the origin? Or are they both good
and apply to different situations?