scatter#
Create a scatter plot
-
template<typename TensorType>
void matx::viz::scatter(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 scatter plot from a tensor view
Generates either an HTML page or launches a browser displaying a scatter plot from X/Y values. The two input tensors must be rank 1, and must match in size.
- 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