Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to install Seaborn

📅 2015-Mar-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ matplotlib, seaborn ⬩ 📚 Archive

Left: Matplotlib Right: Seaborn

Seaborn is a plotting library that is built on top of Matplotlib. For folks already using Matplotlib, it makes it easy to generate visually pleasing plots that use contemporary colors and features. The key selling point is that you can do this by making zero or very few additions to your Matplotlib code! 😊

To install Seaborn:

$ sudo apt install python-scipy python-pandas
$ sudo pip install seaborn

It takes just a single line of code for Seaborn to change your plots:

import seaborn

With just this line, it changes the fonts, layout and colors used resulting in a much more pleasing plot. If you want to go further, you can use Seaborn to use beautiful color palettes and other features described in their tutorial.

Tried with: Seaborn 0.5.1, Matplotlib 1.3.1, Python 2.7.6 and Ubuntu 14.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧