2015-10-14 37 views
8

輪郭線ラベルを3Dプロットに挿入する方法はありますか? clabelは、明らかに、3Dmatplotlib 3Dの輪郭線ラベル

clabel is not implementedとして
import numpy as np 
from mpl_toolkits.mplot3d import Axes3D 
import matplotlib.pyplot as plt 

x,y = np.meshgrid(np.linspace(-1,1,10),np.linspace(-1,1,10)) 
z=-(x**2+y**2) 

fig,ax = plt.subplots() 
C=ax.contour(x,y,z) 
ax.clabel(C) 

fig = plt.figure() 
ax = fig.add_subplot(111,projection='3d') 
C=ax.contour(x,y,z,zdir='z',offset=-2) 
ax.clabel(C) 

enter image description here enter image description here

答えて

0

に実装されておらず、戻り値は、当分の間clabel()を呼び出すにはポイントは確かにどれもありません。 C.levels属性はmanually add labels to the graphに使用できます。

ラベルの下に輪郭を隠す素敵なinline機能はありません。

関連する問題