Code Yarns ‍👨‍💻

How to change font size in Seaborn

(First posted on: 2015-04-20 12:22:07+00:00)

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