RobWorkProject  23.9.11-
Public Member Functions | List of all members
MathematicaPlotWidget Class Reference

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...
 

Detailed Description

Widget for Mathematica plots.

Constructor & Destructor Documentation

◆ MathematicaPlotWidget()

MathematicaPlotWidget ( QWidget *  parent = 0)

Construct new widget for a Mathematica plot.

Parameters
parent[in] (optional) the parent Qt widget. Ownership is shared by the caller and the parent widget if given.

Member Function Documentation

◆ listPlot()

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.

Parameters
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.

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  event)

Resize plot if widget size is changed.

Parameters
event[in] the resize event.

The documentation for this class was generated from the following file: