2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Matplotlibのグラフデザインいろいろ紹介

Posted at

matplotlibには、グラフのデザインを決めるオプションがあります。
オプションを指定するには、このようにします。

import matplotlib
import matplotlib.pyplot as plt

plt.style.use('seaborn-bright')
font = {'family' : 'meiryo'}
matplotlib.rc('font', **font)

環境に付属しているテーマ一覧の確認には、

print(plt.style.available)

で行います。

テーマのサンプル

  • classic
    classic.png

  • ggplot
    ggplot.png

  • seaborn-dark
    seaborn-dark.png

  • seaborn-talk
    seaborn-talk.png

  • seaborn-colorblind
    seaborn-colorblind.png

  • seaborn-pastel
    seaborn-pastel.png

  • seaborn-ticks
    seaborn-ticks.png

  • grayscale
    grayscale.png

  • seaborn-poster
    seaborn-poster.png

  • dark_background
    dark_background.png

  • seaborn-bright
    seaborn-bright.png

  • seaborn-notebook
    seaborn-notebook.png

  • seaborn-muted
    seaborn-muted.png

  • seaborn-white
    seaborn-white.png

  • seaborn-deep
    seaborn-deep.png

  • bmh
    bmh.png

  • seaborn-whitegrid
    seaborn-whitegrid.png

  • seaborn-paper
    seaborn-paper.png

  • seaborn-dark-palette
    seaborn-dark-palette.png

  • seaborn-darkgrid
    seaborn-darkgrid.png

  • fivethirtyeight
    fivethirtyeight.png

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?