如何更改matplotlib 3d图的边距刻度的颜色?

时间:2018-06-07 15:35:18

标签: python matplotlib 3d

请参阅以下代码:

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

#creates a spiral



N = 100
t = np.linspace(0,20,N)
z = 0.5*t
phi = 2*np.pi/10*t
x = np.cos(phi)
y = np.sin(phi)




fig = plt.figure(facecolor="black")
ax = fig.gca(projection='3d')
plt.gca().patch.set_facecolor("black")

ax.tick_params(axis='x',colors='white')
ax.tick_params(axis='y',colors='white')
ax.tick_params(axis='z',colors='white')
ax.w_xaxis.line.set_color("white")
ax.w_yaxis.line.set_color("white")
ax.w_zaxis.line.set_color("white")
ax.plot(x, y, z, c='blue')


plt.show()

创建以下图: plot

如何更改红色包围的刻度线的颜色? (一下子全部)

0 个答案:

没有答案