Skip to Content
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
book

Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

by Jake VanderPlas, 菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
294
4
章 
Matplotlib
による可視化
hist_and_lines()
図4-91 Seabornスタイル
こうしたさまざまなスタイルの組み込みオプションを駆使することで、
Matplotlib
は対話的な可
視化向け、および出版向けの図の作成、どちらに対しても有益なツールとなっています。本書では、
プロットを作成するときにこれらのスタイルのいずれかを使用します。
4.14
Matplotlib
を使った
3
次元プロット
Matplotlib
は当初、
2
次元のプロットのみを念頭に置いて設計されましたが、
1.0
リリースの頃、
Matplotlib
2
次元ツールの上に、いくつかの
3
次元プロットユーティリティが構築されました。そ
の結果、
Matplotlib
は(ある程度の制限はあるものの)
3
次元データの可視化も行える利便性の高い
ツールとなりました。
Matplotlib
の初期インストールに含まれている
mplot3d
ツールキットをイン
ポートして、
3
次元プロットを有効にします( 4-92)。
In[1]: from mpl_toolkits import mplot3d
このサブモジュールがインポートされると、
projection = '3d'
というキーワードを通常の軸生
成関数に渡すことで、
3
次元の軸を作成できます。
In[2]: %matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
In[3]: fig = plt.figure() ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873118413Other