surf#

Create a surface plot

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

Create a surface plot from a tensor view

Generates either an HTML page or launches a browser displaying a surface plot. Three tensor are required for a surface 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:
  • T1 – Type of axes tensors

  • T2 – Type of data tensor (Z)

  • 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

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

Create a surface plot from a tensor view

Generates either an HTML page or launches a browser displaying a surface plot. A single Z tensor uses only the data values, and the X/Y values will be deduced from the size of Z

Template Parameters:
  • T1 – Type of axes tensors

  • RANK – Rank of tensor

Parameters:
  • 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