Mayavi and Python: surf w/ points3d

  mayavi, mayavi.mlab, python

Environment: Python 3.7 and Mayavi 4.7.1

I’m trying to overlay 3d points onto a surf plot using points3d however I’m having issues with my scale. On my surf plot I set the warp_scale to ‘auto’ but I’m not sure how to apply the scale to my points3d plot. Below is the code I’m using:

msurf = mlab.surf(ulats, ulons, tarry, colormap='gist_earth', warp_scale='auto')
pts = mlab.points3d(rad_lat, rad_lon, rad_el)
mlab.show()

Question: Is there a way to set the scale from a surf plot onto a points3d plot?

Source: Python Questions

LEAVE A COMMENT