
- 174 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Interactive Applications Using Matplotlib
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Interactive Applications Using Matplotlib
Table of Contents
Interactive Applications Using Matplotlib
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing Interactive Plotting
Installing Matplotlib
Show() your work
Interactive navigation
Interactive plotting
Scripted plotting
Getting help
Gallery
Mailing lists and forums
From front to backend
Interactive versus non-interactive
Anti-grain geometry
Selecting your backend
The Matplotlib figure-artist hierarchy
Canvassing the figure
The menagerie of artists
Primitives
Collections
Summary
2. Using Events and Callbacks
Making the connection
The big event
Breaking up is the easiest thing to do
Keymapping
Picking
Data editing
User events
Editor events
Summary
3. Animations
A short history
The fastest draw in the west
The animation module
Advanced animations
Event source
Timers
Blitting
Recipes
Tails
Fades
Saving animations
Notes about codecs and file formats
Simultaneous animations
How animations are saved
Session recorder
Summary
4. Widgets
Built-in widgets
Slider
Button
Check buttons
Radio button
Lasso
LassoSelector
RectangleSelector
SpanSelector
Cursor
format_coord()
Third-party tools
mpldatacursor
Glue
Plot.ly, ggplot, prettyplotlib, and Seaborn
Summary
5. Embedding Matplotlib
The revelation
Through a glass, darkly
Tinker tailor soldier pylab_setup()
Canvas materials
Bars, menus, and sliders – four ways
GTK
Tkinter
wxWidgets
Qt
Matplotlib in your app
GTK
Tkinter
wxWidgets
Qt
Summary
Index
Interactive Applications Using Matplotlib
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2015
Production reference: 1170315
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-884-6
www.packtpub.com
Credits
Author
Benjamin V. Root
Reviewers
Kamran Husain
Nathan Jarus
Jens Hedegaard Nielsen
Sergi Pons Freixes
Acquisition Editors
Richard Gall
Owen Roberts
Content Development Editor
Shubhangi Dhamgaye
Technical Editors
Tanvi Bhatt
Nanda Padmanabhan
Copy Editors
Roshni Banerjee
Gladson Monteiro
Project Coordinator
Harshal Ved
Proofreaders
Maria Gould
Lesley Harrison
Bernadette Watkins
Indexer
Monica Ajmera Mehta
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda
About the Author
Benjamin V. Root has been a member of the Matplotlib development team since 2010. His main areas of development have been the documentation and the mplot3d toolkit, but now he focuses on code reviews and debugging. Ben is also an active member of mailing lists, using his expertise to help newcomers understand Matplotlib. He is a meteorology graduate student, working part-time on his PhD dissertation. He works full-time for Atmospheric and Environmental Research, Inc. as a scientific programmer.
About the Reviewers
Nathan Jarus is a computer science PhD candidate at Missouri S&T. He regularly uses Matplotlib to visualize and experiment with results. Prior to his graduate studies, he spent several years developing data visualization tools for research professors. Beyond visualization, he studies complex system modeling and control.
Jens Hedegaard Nielsen is a research software developer at University College London, where he works on a number of different programming projects in relation to research across the university. He is an active Matplotlib developer. He has a PhD in experimental laser physics from Aarhus University, Denmark.
Sergi Pons Freixes is a telecommunications engineer and a PhD candidate with experience on optical sensors and data analysis. For almost 10 years, he has been working in international environments, performing both hands-on development and research.
During his master's degree in telecommunications engineering, he engaged in part-time research in the Department of Signal Theory and Communications at the Polytechnic University of Catalonia (UPC), with the design and development of a low-cost hyperspectral in-situ sensor. This experience stimulated him to start a PhD at the same department. He obtained a grant from the Spanish National Research Council (CSIC) and performed his predoctoral training at the Marine Technology Unit in Barcelona, graduating for a master of advanced studies and leading and supervising the master thesis of other university students, while continuing his research on low-cost solutions oriented to increase the observational capabilities for marine/oceanographic biological information systems.
In 2011, he gained a fellowship from the Spanish Ministry of Economy and Competitiveness to expand his experience in international scientific organisms, moving to the European Space Agency office in Italy and working on assessing the viability of remote sensing coral monitoring. During his stay, he gained a contractor position as performance simulation engineer for the Sentinel 3 satellite project at the European Space Agency facilities in the Netherlands, being responsible for the simulators and processors operation and maintenance.
In January 2015, he moved to San Diego, California, where he is currently finishing his PhD while he pursues new opportunities.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. G...
Table of contents
- Interactive Applications Using Matplotlib
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Interactive Applications Using Matplotlib by Benjamin V. Root in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Graphics. We have over one million books available in our catalogue for you to explore.