Class LinePlot2DWidget

Inheritance Relationships

Base Type

Class Documentation

class SmartPeak::LinePlot2DWidget : public SmartPeak::GenericGraphicWidget

Class for plotting 2D line plots.

NOTE: series data are assumed to be aligned column wise (i.e., each column is a series or x_data_.dimension(1) == series_names_.size())

Public Functions

inline LinePlot2DWidget(const Eigen::Tensor<float, 2> &x_data, const Eigen::Tensor<float, 2> &y_data, const Eigen::Tensor<std::string, 1> &series_names, const std::string &x_axis_title, const std::string &y_axis_title, const float &x_min, const float &x_max, const float &y_min, const float &y_max, const float &plot_width, const float &plot_height, const std::string &plot_title)
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

Public Members

const Eigen::Tensor<float, 2> &x_data_
const Eigen::Tensor<float, 2> &y_data_
const Eigen::Tensor<std::string, 1> &series_names_
const std::string &x_axis_title_
const std::string &y_axis_title_
const float &x_min_
const float &x_max_
const float &y_min_
const float &y_max_
const float &plot_width_
const float &plot_height_
const std::string plot_title_