Artificial intelligent assistant

軸のラベルと目盛りがぶつかってしまう ![]( fig = plt.figure() ax = Axes3D(fig, rect=(0.1,0.1,0.8,0.8)) #rect=(x0,y0,width,height) X,Y = np.meshgrid(x_list, t_list) ax.set_xlabel("Position",fontsize=24) ax.set_ylabel("Time",fontsize=24) ax.set_zlabel("|φ|^2",fontsize=18) ax.set_xlim(2*n,0) ax.set_ylim(2*n,0) ax.set_zlim(0,1) offset = pp_map.ravel() + np.abs(pp_map.min()) fracs = offset.astype(float)/offset.max() norm = colors.Normalize(fracs.min(), fracs.max()) clrs = cm.cool(norm(fracs)) ax.bar3d(X.ravel(), Y.ravel(), pp_map.ravel() ,0.5, 0.5, -pp_map.ravel(),color =clrs) ax.w_xaxis.set_pane_color((0, 0, 0, 0)) ax.w_yaxis.set_pane_color((0, 0, 0, 0)) ax.w_zaxis.set_pane_color((0, 0, 0, 0)) ax.grid(color="white") ax.grid(False) plt.show()

`set_xlabel``labelpad`


ax.set_xlabel("Position", labelpad=10, fontsize=24)
ax.set_ylabel("Time", labelpad=20, fontsize=24)
ax.set_zlabel("|φ|^2", labelpad=10, fontsize=18)

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 37f836eba55807da5d13c3141ff5f4e9