如何在matplotlib中更改三维打印的刻度长度

如何在matplotlib中更改三维打印的刻度长度,matplotlib,Matplotlib,测试代码如下所示。当我添加长度=10时,记号长度根本不会改变。有人能帮忙吗 from mpl_toolkits.mplot3d import Axes3D from matplotlib import pyplot as plt fig = plt.figure() ax = Axes3D(fig) ax.scatter((0, 0, 1), (0, 1, 0), (1, 0, 0)) ax.w_xaxis.line.set_color('red') ax.w_yaxis.line.set_

测试代码如下所示。当我添加长度=10时,记号长度根本不会改变。有人能帮忙吗

from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt

fig = plt.figure()
ax = Axes3D(fig)

ax.scatter((0, 0, 1), (0, 1, 0), (1, 0, 0))
ax.w_xaxis.line.set_color('red')
ax.w_yaxis.line.set_color('red')
ax.w_zaxis.line.set_color('red')
ax.w_zaxis.line.set_color('red')
ax.xaxis.label.set_color('red')
ax.yaxis.label.set_color('red')
ax.zaxis.label.set_color('red')
ax.tick_params(axis='x', colors='red')   
ax.tick_params(axis='y', colors='red')  
ax.tick_params(axis='z', colors='red')  # add length = 10 does not change the length of ticks, why?

plt.show()

:“Axes3D当前忽略了其中的一些设置。”请记住,matplotlib是作为2D库设计的,3D功能是后来添加的。@T先生,谢谢!为了更好地控制打印三维打印,您建议使用的任何其他软件包?如果您需要的不仅仅是基本的三维打印功能,matplotlib建议使用。我不知道此建议基于什么-出于我的需要,mplot3d就足够了。:“Axes3D目前忽略了其中一些设置。”请记住,matplotlib是作为2D库设计的,3D功能是后来添加的。@T先生,谢谢!为了更好地控制打印三维打印,您建议使用的任何其他软件包?如果您需要的不仅仅是基本的三维打印功能,matplotlib建议使用。我不知道这个建议是基于什么-对于我的需要,mplot3d就足够了。