×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Pablo Vasquez
Added: Aug 30, 2016 2:17 PM
Modified: Sep 6, 2016 8:02 PM
Views: 2061
Tags: 3d mayavi
  1. mlab.figure(fgcolor=(0, 0, 0), bgcolor=(1, 1, 1))
  2. s = mlab.surf(X, Y, err, colormap='hsv', warp_scale="auto")
  3. mlab.outline(s, extent=(0, 60, 0, 60, 0, 60))
  4. mlab.axes(s, extent=(0, 50, 0, 50, 0, 50))
  5. # Nice view from the front
  6. mlab.view(.0, - 5.0, 4)
  7. mlab.show()
  8. mlab.xlabel('r1')