On Fri, May 24, 2013 at 9:27 AM, Phil Elson <notifications@github.com>wrote:

> In examples/animation/old_animation/animate_decay_tk_blit.py:
>
> > @@ -10,8 +10,7 @@ def data_gen():
> >      return np.sin(2*np.pi*t) * np.exp(-t/10.)
> >  data_gen.t = 0
> >
> > -fig = plt.figure()
> > -ax = fig.add_subplot(111)
> > +fig, ax = plt.subplots()
>
> To me this is just as alien as the original. If you just want an axes then ax
> = plt.axes() is surely the only sane way of doing it.
> If you need access to the figure that the axes lives on then we can make
> use of the circular OO design inherent throughout matplotlib and do
> ax.figure.
>
> Just my 2cents.
>
Coming from matlab, the "plt.axes()" is what looks alien to me.  While
plt.subplots() isn't quite familiar to my matlab sense, at least the name
"subplot" is there and I know that is what I want.  Do remember, the
examples section is intended not only to showcase the features of
matplotlib, but also serves two other purposes. 1) establish by example the
coding conventions for using the matplotlib library, 2) serve as the bridge
for migrating users away from other tools.  Making the examples familiar to
them, but yet also following best coding practices of matplotlib is a
tricky balance.



> —
> Reply to this email directly or view it on GitHub<https://github.com/matplotlib/matplotlib/pull/2043/files#r4380788>
> .
>