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 4. Visualizing Online Data

At this point, we have already covered the basics of creating and customizing plots using Matplotlib. In this chapter, we begin the journey of understanding more advanced Matplotlib usage through examples in specialized topics.

When considering the visualization of a concept, the following important factors have to be considered carefully:

  • Source of the data
  • Filtering and data processing
  • Choosing the right plot type for the data:
    • Visualizing the trend of data:
      • Line chart, area chart, and stacked area chart
    • Visualizing univariate distribution:
      • Bar chart, histogram, and kernel density estimation
    • Visualizing bivariate distribution:
      • Scatter plot, KDE density chart, and hexbin chart
    • Visualizing categorical data:
      • Categorical scatter plot, box plot, swarm plot, violin plot
  • Adjusting figure aesthetics for effective storytelling

We will cover these topics via the use of demographic and financial data. First, we will discuss typical data formats when we fetch data from the...

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}