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

Advanced animations

So far, we have seen how to inject animations into an existing Matplotlib application as if it was an afterthought. This is perfectly valid, but what if we spend time considering how best to prepare our codebase for animation use? What sort of features and effects could we enable?

Your manager drops by and says, "You know the animation I showed the Bobs the other day? They need one with the tracks displayed, mmm-kay? We need to push this, so I am going to need you to come in on Saturday to get this done, that would be great." It is a good thing we had the foresight to isolate our display elements into their own classes in the previous chapter. Now, it is just a matter of adding a new display element, that is, tracks! We will model this one closely to the Stormcells design, but there are going to be some fundamental differences. First, the storm cells are organized by frames while the tracks are not. This leads to a bit of a complication for the purposes of animations...

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