×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Pablo Vasquez
Added: Oct 7, 2016 9:25 PM
Views: 3
Tags: no tags
  1. from mayavi import mlab
  2.  
  3.  
  4. mlab.figure(fgcolor=(0, 0, 0), bgcolor=(1, 1, 1))
  5. mlab.surf(X, Y, Gc, colormap='YlGnBu', warp_scale="auto")
  6.  
  7. # Nice view from the front
  8. mlab.view(.0, - 5.0, 4)
  9. mlab.show()
  10.  
  11. # Save snapshot
  12. snp = mlab.screenshot()
  13.