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

Two-dimensional faceted plots


We are going to introduce three major ways to create faceted plots: seaborn.factorplot(), seaborn.FacetGrid(), and seaborn.pairplot(). You might have seen some faceted plots in the previous chapter, when we talked about seaborn.lmplot(). Actually, the seaborn.lmplot() function combines seaborn.regplot() with seaborn.FacetGrid(), and the definitions of data subsets can be adjusted by the hue, col, and row parameters.

We are going to introduce three major ways to create faceted plots: seaborn.factorplot(), seaborn.FacetGrid(), and seaborn.pairplot(). These functions actually work similarly to seaborn.lmplot() in the way of defining facets.

Factor plot in Seaborn

With the help of seaborn.factorplot(), we can draw categorical point plots, box plots, violin plots, bar plots, or strip plots onto a seaborn.FacetGrid() by tuning the kind parameter. The default plot type for factorplot is point plot. Unlike other plotting functions in Seaborn, which support a wide variety...

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}