タグ

styleとmatplotlibに関するU1and0のブックマーク (2)

  • matplotlib + seaborn: Pythonでグラフ描画

    matplotlib はPythonにおけるデータ可視化のデファクトスタンダード。 基的には何でもできるけど、基的な機能しか提供していないので、 いくらかの便利機能を seaborn で補う。 基 https://matplotlib.org/stable/tutorials/introductory/usage.html import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns iris = sns.load_dataset('iris') # Create an empty Figure fig = plt.figure() # Add an Axes to this fig ax = fig.subplots() # Plot on this ax a

    matplotlib + seaborn: Pythonでグラフ描画
    U1and0
    U1and0 2016/12/10
    with 文でも使える: with sns.plotting_context('talk', font_scale=1.2): # plot
  • Seabornのスタイル見本 - 計算物理屋の研究備忘録

    次回:Seabornのコンテキスト見 - 計算物理屋の研究備忘録 次次回:Seabornの色見 - 計算物理屋の研究備忘録 Seabornとは matplotlibのグラフのスタイルや配色を見やすくきれいに設定してくれる便利なやつ。基的にはmatplotlibを使うときにちょっと付け足すだけで使えるのでmatplotlib使いなら簡単。 公式サイト Seaborn: statistical data visualization — seaborn 0.7.1 documentation 現在の最新バージョンは0.7.0 インストールはcondaが使えればcondaコマンドからできる。pipでもできると思う。 スタイル一覧 darkgrid whitegrid dark white ticks ticks despine 使い方 公式サイトのチュートリアルから。 https://web

    Seabornのスタイル見本 - 計算物理屋の研究備忘録
    U1and0
    U1and0 2016/11/24
    sns.set_style("darkgrid", {"axes.facecolor": "red"})
  • 1