How do I scale the x and y axes in mayavi2?

前端 未结 2 998
一个人的身影
一个人的身影 2021-01-04 22:42

I want to do a 3-d plot with mayavi2 using mayavi.mlab.surf(). This function has an argument called warp_scale that can be used to scale the z axis, I\'m looking for somethi

相关标签:
2条回答
  • 2021-01-04 23:23

    when "m" is your surface object:

    m.actor.actor.scale = (0.1, 1.0, 1.0)
    

    http://osdir.com/ml/python.enthought.devel/2006-11/msg00067.html

    0 讨论(0)
  • 2021-01-04 23:27

    I was looking for the same feature. And it turns out you simply can't do it,

    http://comments.gmane.org/gmane.comp.graphics.mayavi.user/630

    0 讨论(0)
提交回复
热议问题