Ravindra BagaleCourses & study guides

14. Visualization with seaborn

14.4 Seaborn vs matplotlib

Prefer seaborn when… Prefer matplotlib when…
Category comparisons with hue Fully custom layout / dual axis
Quick statistical aggregates Exact control of every artist
Working straight from tidy DataFrame Building a multi-panel dashboard figure

You can always reach ax and finish labels in matplotlib style.

Practice task

Plot a barplot of sum of amount by city with hue="festival". Which city-festival pair leads in this sample?

Thodkyaat sangaycha tar (quick recap)

  • seaborn = tidy DataFrame → attractive category plots fast
  • countplot / barplot / boxplot + hue cover most EDA visuals
  • Still save via matplotlib fig.savefig

Samajla ka? Aata pudhe jaauya chart choice and storytelling.