HOME/Articles/

matplotlib example style (snippet)

Article Outline

Python matplotlib example 'style'

Modules used in program:

  • import seaborn as sns

python style

Python matplotlib example: style

import seaborn as sns
sns.set()
sns.set_style("whitegrid", {'grid.linestyle': '--'})
sns.set_context("paper", 1.5, {"lines.linewidth": 4})
sns.set_palette("winter_r", 8, 1)
sns.set('talk', 'whitegrid', 'dark', font_scale=1.5,
        rc={"lines.linewidth": 2, 'grid.linestyle': '--'})