Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to change font size in Seaborn

📅 2015-Apr-20 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ fonts, seaborn ⬩ 📚 Archive

The scale of the font used by Seaborn in its plots can be changed. This scale is 1 by default.

To change it:

import seaborn as sborn

# Bigger than normal fonts
sborn.set(font_scale=1.5)

# Gigantic fonts
sborn.set(font_scale=2)

Tried with: Seaborn 0.5.1 and Ubuntu 14.04


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧