AvogadroLibs 1.99.0
Loading...
Searching...
No Matches
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 addSeries (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 std::string &title)
 
void setYAxisTitle (const std::string &title)
 
void setTickLabels (Axis a, const std::vector< float > &tickPositions, const std::vector< std::string > &tickLabels)
 
void setAxisLimits (Axis a, float min, float max)
 
void setXAxisLimits (float min, float max)
 
void setYAxisLimits (float min, float max)
 
void setFontSize (int size=14)
 
void setLineWidth (float width=1.0)
 
void setAxisLogScale (Axis a, bool logScale)
 

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