Public Member Functions | |
Plotter () | |
~Plotter () | |
void | setWidth (unsigned int width) |
void | setHeight (unsigned int height) |
void | setPadding (double paddingLeft, double paddingRight, double paddingBottom, double paddingTop) |
void | setBoundsX (double minX, double maxX) |
void | setBoundsY (double minY, double maxY) |
void | setBounds (double minX, double maxX, double minY, double maxY) |
void | setAutoScaleX (bool autoScaleX) |
void | setAutoScaleY (bool autoScaleY) |
void | setAutoScale (bool autoScale) |
void | setLabelX (const std::string &labelX) |
void | setLabelY (const std::string &labelY) |
void | setCanvas (cv::Mat &canvas) |
const cv::Mat & | getCanvas () |
void | plot (double x, double y, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Point)) |
void | plot (const std::vector< double > &axis, const std::vector< double > &data, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Line)) |
void | plot (const std::vector< double > &data, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Line)) |
void | plot (const Property::DOS &dos, double sigma=0, unsigned int windowSize=51) |
void | plot (const Property::EigenValues &eigenValues) |
void | plot (const std::vector< std::vector< double >> &data) |
void | plot (const Array< double > &data, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Line)) |
void | plot (const std::vector< std::vector< double >> &data, const std::vector< std::vector< double >> &intensity, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Point)) |
void | plot (const Array< double > &data, const Array< double > &intensity, const Decoration &decoration=Decoration({0, 0, 0}, Decoration::LineStyle::Point)) |
void | setHold (bool hold) |
void | clear () |
void | save (std::string filename) |
TBTK::Plot::Plotter::Plotter | ( | ) |
Constructor.
TBTK::Plot::Plotter::~Plotter | ( | ) |
Destructor.
|
inline |
Clear plot.
|
inline |
Get canvas.
void TBTK::Plot::Plotter::plot | ( | double | x, |
double | y, | ||
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Point) |
||
) |
Plot point.
void TBTK::Plot::Plotter::plot | ( | const std::vector< double > & | axis, |
const std::vector< double > & | data, | ||
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Line) |
||
) |
Plot data.
void TBTK::Plot::Plotter::plot | ( | const std::vector< double > & | data, |
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Line) |
||
) |
Plot data.
void TBTK::Plot::Plotter::plot | ( | const Property::DOS & | dos, |
double | sigma = 0 , |
||
unsigned int | windowSize = 51 |
||
) |
Plot density of states.
void TBTK::Plot::Plotter::plot | ( | const Property::EigenValues & | eigenValues | ) |
Plot eigenvalues.
void TBTK::Plot::Plotter::plot | ( | const std::vector< std::vector< double >> & | data | ) |
Plot 2D data.
void TBTK::Plot::Plotter::plot | ( | const Array< double > & | data, |
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Line) |
||
) |
Plot data.
void TBTK::Plot::Plotter::plot | ( | const std::vector< std::vector< double >> & | data, |
const std::vector< std::vector< double >> & | intensity, | ||
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Point) |
||
) |
Plot data with color coded intensity.
void TBTK::Plot::Plotter::plot | ( | const Array< double > & | data, |
const Array< double > & | intensity, | ||
const Decoration & | decoration = Decoration({0, 0, 0}, Decoration::LineStyle::Point) |
||
) |
Plot data with color coded intensity.
|
inline |
Save canvas to file.
|
inline |
Set auto scale.
|
inline |
Set auto scale.
|
inline |
Set auto scale.
|
inline |
Set bounds.
|
inline |
Set bounds.
|
inline |
Set bounds.
|
inline |
Set canvas.
|
inline |
Set height.
|
inline |
Set whether ot not data is plotted on top of old data.
|
inline |
Set x-label.
|
inline |
Set y-label.
|
inline |
Set padding.
|
inline |
Set width.