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を使ったデータ分析、機械学習
4.14
Matplotlib
を使った
3
次元プロット
297
図4-94 3次元等高線図
デフォルトの視点は最適ではない場合があります。その場合には、
view_init
メソッドを使用し
て高さと方位角を設定できます。この例では仰角を
60
度(
xy
平面より
60
度上)、方位角を
35
度(
z
軸に反時計回りで
35
度)に設定します(図4-95)。
In[7]: ax.view_init(60, 35)
fig
図4-95 視点を変更した3 次元プロット
繰り返しになりますが、
Matplotlib
の対話型バックエンドを使用しているときには、クリックや
ドラッグにより、こうした回転を対話的に行えます。
4.14.3
 ワイヤーフレームとサーフェス
ワイヤーフレームとサーフェスもグリッド形状のデータから作られる
3
次元のプロットです。こ
れらは値のグリッドを取り、それを指定された
3
次元表面上に投影し、結果として生じる
3
次元形
状をわかりやすく可視化します。ワイヤーフレームを使用した例を示します( 4-96)。
In[8]: fig = plt.figure()
ax = plt.axes(projection='3d')
ax.plot_wireframe(X, Y, Z, color='black')
ax.set_title('wireframe');
298
4
章 
Matplotlib
による可視化
ワイヤーフレーム
図4-96 ワイヤーフレーム
サーフェスはワイヤーフレームに似ていますが、ワイヤーフレームの各面が塗りつぶしたポリゴ ...
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