はじめに
matplotlib mplot3dの3D wireframeグラフでX or Y 軸の一方向だけのデータを表示する方法について解説する。
コード

解説
モジュールのインポート
図の作成
subplot_kw={‘projection’: ‘3d’}は、add_subplot(111,projection=’3d’)とおなじ。
一方向wireframeグラフの作成
ccount, rcountをそれぞれ0とすることで、その方向にデータが非表示となる。
各方向で色を変えて描写

参考
mplot3d tutorial — Matplotlib 2.0.2 documentation
mplot3d example code: wire3d_zero_stride.py — Matplotlib 2.0.2 documentation
コメント