我正在使用Matplotlib的Axes3D来创建一个带有自定义颜色的散点图,如下所示:
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt
fig = plt.figure(1)
ax = Axes3D(fig)
ax.scatter(xval, yval, zval, c=cval, cmap=plt.cm.gray)
这个工作得很好,但是matplotlib自动添加了一些阴影效果,使得远离的点看起来比接近的点更透明/颜色更浅。这使得很难直观地比较各个点的颜色。
是否有办法关闭这个功能?