Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Interactive Applications using Matplotlib

You're reading from   Interactive Applications using Matplotlib

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781783988846
Length 174 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Through a glass, darkly

Previously in this book, we have conflated the canvas and figure terms, at best giving an impression that the figure object was merely a container for the canvas object. When working above the canvas level, this conceptual model is sufficient. The truth, however, is more complicated. There are actually three objects in play: figure, canvas, and manager. We encountered the manager briefly in one of the examples in the previous chapter. While I would love to describe a very clean and inspired design involving these three objects, that would not be possible. Abstraction layers that hide away messy details are never simple. Initial appearances can often be misleading in understanding the relationships between them. Our discussion of the design should bring about a new level of clarity in how Matplotlib truly works, and hopefully some inspiration in new ways to use the library.

Tinker tailor soldier pylab_setup()

In this book, we have shown an attribute hierarchy of figure...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image