AvogadroLibs 1.98.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ChartWidget Class Reference
Inheritance diagram for ChartWidget:

Public Types

enum class  Axis {
  x ,
  y
}
 

Public Member Functions

 ChartWidget (QWidget *p=nullptr)
 
bool addPlot (const std::vector< float > &x, const std::vector< float > &y, const color4ub &color=color4ub{ 0, 0, 0, 255 })
 
bool addPlots (const std::vector< std::vector< float > > &plotData, const color4ub &color=color4ub{ 0, 0, 0, 255 })
 
void clearPlots ()
 
void setXAxisTitle (const char *title)
 
void setYAxisTitle (const char *title)
 
void setTickLabels (Axis a, const std::vector< float > &tickPositions, const std::vector< std::string > &tickLabels)
 
void setAxisLimits (Axis a, float min, float max)
 

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