Skip to content

streamtube

Streamtubes — streamlines rendered with a width that varies with divergence.

h = streamtube(x, y, z, u, v, w, sx, sy, sz, ...)

Like streamline but renders each streamline as a tube whose radius varies with the local divergence of the vector field. Useful for visualizing fluid expansion/compression along streamlines.

streamtube(X, Y, Z, U, V, W, sx, sy, sz)
  • streamline — Streamlines through a 2D or 3D vector field.
  • streamribbon — Streamribbons — streamlines as twisted ribbons showing local rotation.