import numpy as np import holoviews as hv from holoviews import opts hv.extension('matplotlib') surface = hv.Surface(np.sin(np.linspace(0,100*np.pi*2,10000)).reshape(100,100)) surface.opts(opts.Surface(azimuth=30, elevation=30, rstride=20, cstride=2, cmap='plasma')) xs = np.arange(-4, 4, 0.25) ys = np.arange(-4, 4, 0.25) X, Y = np.meshgrid(xs, ys) R = np.sqrt(X**2 + Y**2) Z = np.sin(R) surface = hv.Surface((xs, ys, Z), label='Surface') wireframe = surface.relabel('Wireframe').opts(plot_type='wireframe') contour = surface.relabel('Contour').opts(plot_type='contour') (surface + wireframe + contour).opts( opts.Layout(fig_size=150, hspace=0.1), opts.Surface(azimuth=60, cmap='fire'))