r/learnmachinelearning • • Feb 19 '20

Data visualisation in Python

Post image
729 Upvotes

35 comments sorted by

View all comments

0

u/[deleted] Feb 19 '20

[deleted]

22

u/swierdo Feb 19 '20

Matplotlib allows for more fine-grained control, so if you need some visual that seaborn doesn't have, you can build it yourself.

0

u/[deleted] Feb 19 '20

[deleted]

10

u/jaakkopants Feb 19 '20

Like the person above said — sometimes you need that extra control that matplotlib offers. However, just wanted to pipe in that it's not really an either/or proposition -- I often use seaborn defaults as a template for my charts but add specific parameters or functions from matplotlib to tweak it specifically to my use case. Since seaborn is built on top of matplotlib you can easily manipulate a seaborn plot object directly with code from matplotlib examples, or add matplotlib parameters to the seaborn code using the *args/**kwargs functionality.

2

u/friedricefordinner Feb 20 '20

Sorry English isn't my first language. What do you mean with "fine-grained control" in this context?

2

u/Ralle8370 Feb 20 '20

He just means that matplotlib offers the ability to adjust smaller details of the plot than seaborn.