[IPython-dev] notebook questions an aesthetic details

Fernando Perez fperez.net@gmail....
Sun Feb 5 17:01:23 CST 2012


On Sun, Feb 5, 2012 at 2:56 PM, Eric Firing <efiring@hawaii.edu> wrote:
> The problem is that when you use pyplot to create a Figure instance, it
> is doing a lot more than just making that instance; it is embedding it
> in the whole pyplot machinery.  That's why closing the figure is a
> pyplot operation (hence a function), not a method of the Figure
> instance.  Of course we could find a way to get around it, but that's
> the present state.  You have to use pyplot to make the figure, and to
> close it.  I imagine the way to change that might be with a
> pyplot.Figure class that would be a subclass of the figure.Figure class.

Thanks for the clarification, Eric; that makes sense.  It's not a
biggie for now, and we can keep this in mind for future enhancements,
to make it easier/cleaner from the user's perspective to stick to an
OO approach.

Cheers,

f


More information about the IPython-dev mailing list