Irregular quadmesh

Download this notebook from GitHub (right-click to download).


Most examples work across multiple plotting backends, this example is also available for:

In [1]:
import numpy as np
import holoviews as hv
hv.extension('bokeh')

Declaring data

In [2]:
n = 20
coords = np.linspace(-1.5, 1.5, n)
X,Y = np.meshgrid(coords, coords);
Qx = np.cos(Y) - np.cos(X)
Qz = np.sin(Y) + np.sin(X)
Z = np.sqrt(X**2 + Y**2)

qmesh = hv.QuadMesh((Qx, Qz, Z))

Plot

In [3]:
qmesh
Out[3]:

Download this notebook from GitHub (right-click to download).