Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Matplotlib 2.x By Example

You're reading from  Matplotlib 2.x By Example

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781788295260
Pages 334 pages
Edition 1st Edition
Languages
Authors (3):
Allen Yu Allen Yu
Profile icon Allen Yu
Claire Chung Claire Chung
Profile icon Claire Chung
Aldrin Yim Aldrin Yim
Profile icon Aldrin Yim
View More author details

Chapter 3. Figure Layout and Annotations

A picture is worth a thousand words. Photographers and painters need to plan their picture composition, and so do data graphics designers. Layout is an important aspect of creating an appealing figure.

Sometimes, your story weighs more than a thousand words to be told via a single figure. We often see a group of relevant plots lying adjacently to deliver a message in multiple aspects.

Just as you may quote some particular phrases in a book paragraph or comment your code for easier comprehension, it is also likely that we need extra annotation to point out areas of emphasis in plots. Now we have mastered the basic techniques to adjust the look and feel in a single plot, in this chapter, we will go through the following topics:

  • Layout:
    • Adjusting the size of the figure
    • Modifying or removing spines
    • Multiple plots within the same figure
    • Adding subplots
    • Adding inset plots
    • Adjusting margins
  • Annotations:
    • Adding basic annotations
    • Adding a textbox
    • Adding shapes
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 $15.99/month. Cancel anytime}