MCPcopy Create free account
hub / github.com/vispy/vispy / surface

Method surface

vispy/plot/plotwidget.py:432–447  ·  view source on GitHub ↗

Show a 3D surface plot. Extra keyword arguments are passed to `SurfacePlot()`. Parameters ---------- zdata : array-like A 2D array of the surface Z values.

(self, zdata, **kwargs)

Source from the content-addressed store, hash-verified

430 return volume
431
432 def surface(self, zdata, **kwargs):
433 """Show a 3D surface plot.
434
435 Extra keyword arguments are passed to `SurfacePlot()`.
436
437 Parameters
438 ----------
439 zdata : array-like
440 A 2D array of the surface Z values.
441
442 """
443 self._configure_3d()
444 surf = scene.SurfacePlot(z=zdata, **kwargs)
445 self.view.add(surf)
446 self.view.camera.set_range()
447 return surf
448
449 def colorbar(self, cmap, position="right",
450 label="", clim=("", ""),

Callers 1

_vispy_swap_buffersMethod · 0.80

Calls 3

_configure_3dMethod · 0.95
set_rangeMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected