![]() |
RobWorkProject
23.9.11-
|
Widget for Mathematica plots. More...
#include <MathematicaPlotWidget.hpp>
Inherits QLabel.
Public Member Functions | |
MathematicaPlotWidget (QWidget *parent=0) | |
Construct new widget for a Mathematica plot. More... | |
virtual | ~MathematicaPlotWidget () |
Destructor. | |
void | listPlot (const std::vector< double > &x, const std::vector< double > &y, const std::string &title="", const std::string &xlabel="", const std::string &ylabel="") |
Do a ListPlot with the given x- and y-values. More... | |
void | resizeEvent (QResizeEvent *event) |
Resize plot if widget size is changed. More... | |
Widget for Mathematica plots.
MathematicaPlotWidget | ( | QWidget * | parent = 0 | ) |
Construct new widget for a Mathematica plot.
parent | [in] (optional) the parent Qt widget. Ownership is shared by the caller and the parent widget if given. |
void listPlot | ( | const std::vector< double > & | x, |
const std::vector< double > & | y, | ||
const std::string & | title = "" , |
||
const std::string & | xlabel = "" , |
||
const std::string & | ylabel = "" |
||
) |
Do a ListPlot with the given x- and y-values.
x | [in] the x-values. |
y | [in] the y-values. |
title | [in] (optional) the plot title. |
xlabel | [in] (optional) x axis label. |
ylabel | [in] (optional) y axis label. |
void resizeEvent | ( | QResizeEvent * | event | ) |
Resize plot if widget size is changed.
event | [in] the resize event. |