なろう分析記録

『小説家になろう』をふくめ『ネット小説投稿サイト』を分析する。コード置き場,主にPython,javascript,たまに創作。

matplotlibスタイルのサンブル

matplotlibのスタイル

Pythonのmatplotlibでは最初から複数の「スタイル」が含まれているため、これらを使うことによって簡単におしゃれなデザインのグラフを作ることが出来ます。
ただ、探してみたところ、スタイルのサンプルを一覧にしたページが見当たらなかったので作ってみました。

使用可能なスタイル名をリストとして取得

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

style_list=[]

#使用可能なスタイル名
for style_name in mpl.style.available:
    
    style_list.append(str(style_name))
    
print(style_list)

結果

bmh
classic
dark_background
fast
fivethirtyeight
ggplot
grayscale
seaborn-bright
seaborn-colorblind
seaborn-dark-palette
seaborn-dark
seaborn-darkgrid
seaborn-deep
seaborn-muted
seaborn-notebook
seaborn-paper
seaborn-pastel
seaborn-poster
seaborn-talk
seaborn-ticks
seaborn-white
seaborn-whitegrid
seaborn
Solarize_Light2
tableau-colorblind10
_classic_test

サンプル

bmh

f:id:karupoimou:20190728011116p:plain:w500

classic

f:id:karupoimou:20190728011201p:plain:w500

dark_background

f:id:karupoimou:20190728011221p:plain:w500

fast

f:id:karupoimou:20190728011235p:plain:w500

fivethirtyeight

f:id:karupoimou:20190728011245p:plain:w500

ggplot

f:id:karupoimou:20190728011255p:plain:w500

grayscale

f:id:karupoimou:20190728011305p:plain:w500

seaborn-bright

f:id:karupoimou:20190728011315p:plain:w500

seaborn-colorblind

f:id:karupoimou:20190728011326p:plain:w500

seaborn-dark-palette

f:id:karupoimou:20190728012556p:plain:w500

seaborn-dark

f:id:karupoimou:20190728011650p:plain:w500

seaborn-darkgrid

f:id:karupoimou:20190728011346p:plain:w500

seaborn-deep

f:id:karupoimou:20190728011402p:plain:w500

seaborn-muted

f:id:karupoimou:20190728011415p:plain:w500

seaborn-notebook

f:id:karupoimou:20190728011425p:plain:w500

seaborn-paper

f:id:karupoimou:20190728011435p:plain:w500

seaborn-pastel

f:id:karupoimou:20190728011444p:plain:w500

seaborn-poster

f:id:karupoimou:20190728011454p:plain:w500

seaborn-talk

f:id:karupoimou:20190728011504p:plain:w500

seaborn-ticks

f:id:karupoimou:20190728011513p:plain:w500

seaborn-white

f:id:karupoimou:20190728011531p:plain:w500

seaborn-whitegrid
f:id:karupoimou:20190728011543p:plain:w500

seaborn

f:id:karupoimou:20190728011636p:plain:w500

Solarize_Light2

f:id:karupoimou:20190728011555p:plain:w500

tableau-colorblind10

f:id:karupoimou:20190728011604p:plain:w500

_classic_test

f:id:karupoimou:20190728012723p:plain:w500

関連ページ

karupoimou.hatenablog.com