bar#

Create a bar graph

template<typename TensorType>
void matx::viz::bar(const TensorType &y, const std::string &title, const std::string &ylabel, const std::string &out_fname = "")#

Create a bar plot from a tensor view using increasing X values

Generates either an HTML page or launches a browser displaying a bar plot from X values. The input tensor must be rank 1 currently.

Template Parameters:
  • T – Type of tensor

  • RANK – Rank of tensor

Parameters:
  • y – Y input tensor

  • title – Title of plot

  • ylabel – Y axis label

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

template<typename TensorType>
void matx::viz::bar(const TensorType &x, const TensorType &y, const std::string &title, const std::string &xlabel, const std::string &ylabel, const std::string &out_fname = "")#

Create a bar plot from a tensor view using both X and Y values

Generates either an HTML page or launches a browser displaying a bar plot from X/Y values. The input tensors must be rank 1 currently.

Template Parameters:
  • T – Type of tensor

  • RANK – Rank of tensor

Parameters:
  • x – X input tensor

  • y – Y input tensor

  • title – Title of plot

  • xlabel – X axis label

  • ylabel – Y axis label

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