contour

Contents

contour#

Create a contour graph

template<typename T1, typename T2>
void matx::viz::contour(const T1 &x, const T1 &y, const T2 &z, const std::string &out_fname = "")#

Create a contour plot from a tensor view

Generates either an HTML page or launches a browser displaying a contour plot. Three tensor are required for a contour plot for the values of each axis and the Z value at each point. The Z tensor must be one rank higher than the x/y tensors with the outer dimensions matching X/Y.

Template Parameters:
  • T – Type of tensor

  • RANK – Rank of tensor

Parameters:
  • x – Tensor with X axis points

  • y – Tensor with Y axis points

  • z – Tensor with Z axis points

  • out_fname – Output file name. If blank, a new window will open with the plot in a browser window