How to scale axes in mplot3d

前端 未结 1 1164
一个人的身影
一个人的身影 2021-02-12 07:01

I can\'t seem to find documentation regarding the ability to scale axes in a 3d image using matplotlib.

For example, I have the image:

相关标签:
1条回答
  • 2021-02-12 07:35

    Usually it is easiest for you to include some of the code that generated the image, so we can see what you've tried and also the general setup of your code. That being said, the inclusion of the following should work:

    from mpl_toolkits.mplot3d import Axes3D
    plt.clf()
    fig = pylab.figure()
    ax = Axes3D(fig)
    ax.set_xlim3d(0, 1000)
    ax.set_ylim3d(0,1000)
    ax.set_zlim3d(0,1000)
    
    0 讨论(0)
提交回复
热议问题