JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
Styling Mix-In for Boxplots. More...
#include <jkqtpboxplotstylingmixins.h>
Public Types | |
enum | MeanMode { MeanAsSymbol , MeanAsLine } |
modes of how to draw the mean in a boxplot More... | |
Public Member Functions | |
JKQTPGraphBoxplotStyleMixin () | |
class constructor | |
double | getBoxWidthAbsolute () const |
width of box in pt. | |
bool | getDrawBox () const |
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots ) | |
QColor | getMeanColor () const |
set the color of the symbol for the mean, or mean line | |
QColor | getMeanFillColor () const |
set the color of filling of the symbol for the mean | |
qreal | getMeanLineDashOffset () const |
returns the dash offset for a custom dash style of Mean lines | |
QVector< qreal > | getMeanLineDashPattern () const |
gets the dash pattern for a custom dash style of Mean lines | |
QPen | getMeanLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties to draw the mean line | |
Qt::PenStyle | getMeanLineStyle () const |
get the line style of Mean lines | |
double | getMeanLineWidth () const |
get the line width of the symbol for the mean outline, or mean line (in pt) | |
MeanMode | getMeanMode () const |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin) | |
double | getMeanSize () const |
get the size (=diameter in pt) of the symbol for the mean (in pt) | |
QBrush | getMeanSymbolBrush (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties | |
QFont | getMeanSymbolFont () const |
generate a QFont for darwing symbols | |
QString | getMeanSymbolFontName () const |
get the font to be used for mean character symbols JKQTPCharacterSymbol+QChar ('').unicode() | |
QPen | getMeanSymbolPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties to draw the mean symbol | |
JKQTPGraphSymbols | getMeanSymbolType () const |
get the type of the symbol for the mean | |
QBrush | getMedianLineBrush () const |
gets the brush used to fill the line area of median lines | |
Qt::PenCapStyle | getMedianLineCapStyle () const |
gets the cap style of median lines | |
QColor | getMedianLineColor () const |
get the color of median lines | |
qreal | getMedianLineDashOffset () const |
returns the dash offset for a custom dash style of median lines | |
QVector< qreal > | getMedianLineDashPattern () const |
gets the dash pattern for a custom dash style of median lines | |
Qt::PenJoinStyle | getMedianLineJoinStyle () const |
returns the join style of median lines | |
Qt::PenStyle | getMedianLineStyle () const |
get the line style of median lines | |
double | getMedianLineWidth () const |
get the width [pt] of median lines | |
QPen | getMedianPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
build a pen to be used for drawing medians | |
double | getRelativeNotchIndent () const |
single-sided indention of the notch (if any), relative to the box width (default: 0.25) | |
double | getRelativeWhiskerWidth () const |
width of the whiskers, relative to the box width (default: 0.5) | |
QBrush | getWhiskerCapLineBrush () const |
gets the brush used to fill the line area of whisker cap lines | |
Qt::PenCapStyle | getWhiskerCapLineCapStyle () const |
gets the cap style of whisker cap lines | |
QColor | getWhiskerCapLineColor () const |
get the color of whisker cap lines | |
qreal | getWhiskerCapLineDashOffset () const |
returns the dash offset for a custom dash style of whisker cap lines | |
QVector< qreal > | getWhiskerCapLineDashPattern () const |
gets the dash pattern for a custom dash style of whisker cap lines | |
Qt::PenJoinStyle | getWhiskerCapLineJoinStyle () const |
returns the join style of whisker cap lines | |
Qt::PenStyle | getWhiskerCapLineStyle () const |
get the line style of whisker cap lines | |
double | getWhiskerCapLineWidth () const |
get the width [pt] of whisker cap lines | |
QPen | getWhiskerCapPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
build a pen to be used for drawing whisker caps | |
QBrush | getWhiskerLineBrush () const |
gets the brush used to fill the line area of whisker lines | |
Qt::PenCapStyle | getWhiskerLineCapStyle () const |
gets the cap style of whisker lines | |
QColor | getWhiskerLineColor () const |
get the color of whisker lines | |
qreal | getWhiskerLineDashOffset () const |
returns the dash offset for a custom dash style of whisker lines | |
QVector< qreal > | getWhiskerLineDashPattern () const |
gets the dash pattern for a custom dash style of whisker lines | |
Qt::PenJoinStyle | getWhiskerLineJoinStyle () const |
returns the join style of whisker lines | |
Qt::PenStyle | getWhiskerLineStyle () const |
get the line style of whisker lines | |
double | getWhiskerLineWidth () const |
get the width [pt] of whisker lines | |
QPen | getWhiskerPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
build a pen to be used for drawing whiskers | |
void | initBoxplotStyle (JKQTBasePlotter *parent, int &parentPlotStyle) |
void | setBoxplotColor (QColor c, JKQTBasePlotter *parent) |
set the color of the graph (colors all elements, based on the given color c ) | |
void | setBoxplotColor (QColor c, QColor bc, JKQTBasePlotter *parent) |
set the color of the graph (colors all elements, based on the given color c , sets background colors from bc ) | |
void | setBoxWidthAbsolute (double __value) |
width of box in pt. | |
void | setDrawBox (bool __value) |
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots ) | |
void | setMeanColor (const QColor &__value) |
set the color of the symbol for the mean, or mean line | |
void | setMeanFillColor (const QColor &__value) |
set the color of filling of the symbol for the mean | |
void | setMeanLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style of Mean lines | |
void | setMeanLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style of Mean lines | |
void | setMeanLineStyle (Qt::PenStyle __value) |
set the line style of Mean lines | |
void | setMeanLineWidth (double __value) |
set the line width of the symbol for the mean outline, or mean line (in pt) | |
void | setMeanMode (MeanMode __value) |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin) | |
void | setMeanSize (double __value) |
set the size (=diameter in pt) of the symbol for the mean (in pt) | |
void | setMeanSymbolFontName (const QString &__value) |
set the font to be used for mean character symbols JKQTPCharacterSymbol+QChar ('').unicode() | |
void | setMeanSymbolType (JKQTPGraphSymbols __value) |
set the type of the symbol for the mean | |
void | setMedianLineBrush (const QBrush &style) |
sets the brush used to fill the line area of median lines | |
void | setMedianLineCapStyle (Qt::PenCapStyle style) |
sets the cap style of median lines | |
void | setMedianLineColor (QColor __value) |
set the color of median lines | |
void | setMedianLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style of median lines | |
void | setMedianLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style of median lines | |
void | setMedianLineJoinStyle (Qt::PenJoinStyle style) |
sets the join style of median lines | |
void | setMedianLineStyle (Qt::PenStyle __value) |
set the line style of median lines | |
void | setMedianLineWidth (double __value) |
set the width [pt] of median lines | |
void | setRelativeNotchIndent (double __value) |
single-sided indention of the notch (if any), relative to the box width (default: 0.25) | |
void | setRelativeWhiskerWidth (double __value) |
width of the whiskers, relative to the box width (default: 0.5) | |
void | setWhiskerCapLineBrush (const QBrush &style) |
sets the brush used to fill the line area of whisker cap lines | |
void | setWhiskerCapLineCapStyle (Qt::PenCapStyle style) |
sets the cap style of whisker cap lines | |
void | setWhiskerCapLineColor (QColor __value) |
set the color of whisker cap lines | |
void | setWhiskerCapLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style of whisker cap lines | |
void | setWhiskerCapLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style of whisker cap lines | |
void | setWhiskerCapLineJoinStyle (Qt::PenJoinStyle style) |
sets the join style of whisker cap lines | |
void | setWhiskerCapLineStyle (Qt::PenStyle __value) |
set the line style of whisker cap lines | |
void | setWhiskerCapLineWidth (double __value) |
set the width [pt] of whisker cap lines | |
void | setWhiskerLineBrush (const QBrush &style) |
sets the brush used to fill the line area of whisker lines | |
void | setWhiskerLineCapStyle (Qt::PenCapStyle style) |
sets the cap style of whisker lines | |
void | setWhiskerLineColor (QColor __value) |
set the color of whisker lines | |
void | setWhiskerLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style of whisker lines | |
void | setWhiskerLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style of whisker lines | |
void | setWhiskerLineJoinStyle (Qt::PenJoinStyle style) |
sets the join style of whisker lines | |
void | setWhiskerLineStyle (Qt::PenStyle __value) |
set the line style of whisker lines | |
void | setWhiskerLineWidth (double __value) |
set the width [pt] of whisker lines | |
Public Member Functions inherited from JKQTPGraphLineStyleMixin | |
JKQTPGraphLineStyleMixin () | |
class constructor | |
virtual | ~JKQTPGraphLineStyleMixin () |
QColor | getHighlightingLineColor () const |
get the color of the graph line when highlighted | |
QPen | getHighlightingLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties | |
QPen | getHighlightingLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties, suitable for drawing rectangle with sharp corners | |
QPen | getKeyLinePen (JKQTPEnhancedPainter &painter, const QRectF &rect, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties, but uses getKeyLineWidthPx() for the width, i.e. constructs a pen for drawing lines in key-symbols | |
double | getKeyLineWidthPx (JKQTPEnhancedPainter &painter, const QRectF &keyRect, const JKQTBasePlotter *parent) const |
returns the linewidth for drawing lines in a key entry with keyRect for the symbol, using painter and parent . | |
QBrush | getLineBrush () const |
gets the brush used to fill the line area | |
Qt::PenCapStyle | getLineCapStyle () const |
gets the cap style | |
QColor | getLineColor () const |
get the color of the graph line | |
qreal | getLineDashOffset () const |
returns the dash offset for a custom dash style | |
QVector< qreal > | getLineDashPattern () const |
gets the dash pattern for a custom dash style | |
Qt::PenJoinStyle | getLineJoinStyle () const |
returns the join style | |
QPen | getLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties | |
QPen | getLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QPen from the line styling properties, suitable for drawing rectangles with sharp edges | |
Qt::PenStyle | getLineStyle () const |
get the style of the graph line | |
double | getLineWidth () const |
get the line width of the graph line (in pt) | |
void | initLineStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default) |
initiaize the line style (from the parent plotter) | |
void | setHighlightingLineColor (const QColor &__value) |
set the color of the graph line when highlighted | |
void | setHighlightingLineColor (const QColor &__value, double alpha) |
set the color of the graph line when highlighted | |
void | setLineBrush (const QBrush &style) |
sets the brush used to fill the line area | |
void | setLineCapStyle (Qt::PenCapStyle style) |
sets the cap style | |
void | setLineColor (const QColor &__value) |
set the color of the graph line | |
void | setLineColor (const QColor &__value, double alpha) |
set the color of the graph line | |
void | setLineColorInvertedFrom (QColor __noninvertedColor) |
sets the line-color as an inverted version of the given color | |
void | setLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style | |
void | setLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style | |
void | setLineJoinStyle (Qt::PenJoinStyle style) |
sets the join style | |
void | setLineStyle (Qt::PenStyle __value) |
set the style of the graph line | |
void | setLineWidth (double __value) |
set the line width of the graph line (in pt) | |
Public Member Functions inherited from JKQTPGraphFillStyleMixin | |
JKQTPGraphFillStyleMixin () | |
class constructor | |
virtual | ~JKQTPGraphFillStyleMixin () |
QBrush | getFillBrush (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
constructs a QBrush from the graph fill styling properties | |
QColor | getFillColor () const |
set the color of the graph filling | |
const QGradient * | getFillGradient () const |
get the gradient object of the graph filling | |
Qt::BrushStyle | getFillStyle () const |
get the fill style of the graph | |
QPixmap | getFillTexture () const |
set the color of the graph filling | |
QImage | getFillTextureImage () const |
set the color of the graph filling | |
void | initFillStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default) |
initiaize the fill style (from the parent plotter) | |
void | initFillStyleInvertedColor (JKQTPGraphFillStyleMixin *other) |
initiaize the fill style from another JKQTPGraphFillStyleMixin other by inverting its fill color | |
void | setFillBrush (const QBrush &b) |
sets a fill brush (overwrites all internal properties!) | |
void | setFillColor (const QColor &__value) |
set the color of the graph filling | |
void | setFillColor (const QColor &__value, double alpha) |
set the color of the graph filling | |
void | setFillGradient (const QGradient &__value) |
set the filling of the graph to a gradient and sets fill style to a gradient setting | |
void | setFillStyle (Qt::BrushStyle __value) |
set the fill style of the graph | |
void | setFillTexture (const QImage &__value) |
set the color of the graph filling and sets fill style to Qt::TexturePattern | |
void | setFillTexture (const QPixmap &__value) |
set the color of the graph filling and sets fill style to Qt::TexturePattern | |
void | setFillTransform (const QTransform &b) |
sets a fill transformation | |
Protected Member Functions | |
void | plotHorizontalBoxplot (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double yp, double ypbottom, double yptop, double minp, double q25p, double medianp, double q75p, double maxp, double meanp=JKQTP_NAN, double notchLowerp=JKQTP_NAN, double notchUpperp=JKQTP_NAN) const |
draws a horizontal boxplot, with all coordinates/sizes given in coordinates of the given painter, using the style properties declared in this class. Provide a parameter with JKQTP_NAN of you don't want it to be drawn, or don't know its value | |
void | plotHorizontalKeyMarker (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, const QRectF &rect) |
draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g. in a plot legend | |
void | plotStyledMeanSymbol (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double x, double y) const |
plot a symbol at location x,y (in painter coordinates), using the current style | |
void | plotVerticalBoxplot (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double xp, double xpleft, double xpright, double minp, double q25p, double medianp, double q75p, double maxp, double meanp=JKQTP_NAN, double notchLowerp=JKQTP_NAN, double notchUpperp=JKQTP_NAN) const |
draws a vertical boxplot, with all coordinates/sizes given in coordinates of the given painter, using the style properties declared in this class. Provide a parameter with JKQTP_NAN of you don't want it to be drawn, or don't know its value | |
void | plotVerticalKeyMarker (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, const QRectF &rect) |
draw a small, stylized, vertical symbol into rect that symbolizes a boxplot, e.g. in a plot legend | |
Private Attributes | |
double | boxWidthAbsolute |
width of box in pt. | |
bool | drawBox |
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots ) | |
QColor | m_meanSymbolFillColor |
color of the symbol filling | |
QString | m_meanSymbolFontName |
font to be used for character mean symbols JKQTPCharacterSymbol+QChar ('').unicode() | |
QPen | m_meanSymbolLinePen |
outline color of the symbol or line pen of the mean-line | |
double | m_meanSymbolLineWidth |
width (in pt) of the lines used to plot the symbol for the data points, given in pt | |
double | m_meanSymbolSize |
size (diameter in pt) of the symbol for the data points, given in pt | |
JKQTPGraphSymbols | m_meanSymbolType |
which symbol to use for the datapoints | |
QPen | m_medianLinePen |
line style of the median lines | |
QPen | m_whiskerCapLinePen |
line style of the whisker cap lines | |
QPen | m_whiskerLinePen |
line style of the whisker lines | |
MeanMode | meanMode |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin) | |
double | medianLineWidth |
line width (in pt) of the median lines | |
double | relativeNotchIndent |
single-sided indention of the notch (if any), relative to the box width (default: 0.25) | |
double | relativeWhiskerWidth |
width of the whiskers, relative to the box width (default: 0.5) | |
double | whiskerCapLineWidth |
line width (in pt) of the whisker cap lines | |
double | whiskerLineWidth |
line width (in pt) of the whisker lines | |
Additional Inherited Members | |
Properties inherited from JKQTPGraphLineStyleMixin | |
QColor | highlightingLineColor |
QColor | lineColor |
Qt::PenStyle | lineStyle |
double | lineWidth |
Properties inherited from JKQTPGraphFillStyleMixin | |
QColor | fillColor |
Qt::BrushStyle | fillStyle |
Styling Mix-In for Boxplots.
The example Example (JKQTPlotter): Styling different aspects of boxplots discusses different options to style boxplots:
modes of how to draw the mean in a boxplot
Enumerator | |
---|---|
MeanAsSymbol | draw mean as a symbol (specified by the settings in JKQTPGraphSymbolStyleMixin) |
MeanAsLine | draw mean as a lie (specified by the pen settings in JKQTPGraphSymbolStyleMixin) |
JKQTPGraphBoxplotStyleMixin::JKQTPGraphBoxplotStyleMixin | ( | ) |
class constructor
double JKQTPGraphBoxplotStyleMixin::getBoxWidthAbsolute | ( | ) | const |
width of box in pt.
bool JKQTPGraphBoxplotStyleMixin::getDrawBox | ( | ) | const |
enables/disables drawing of the actual box of the boxplot (false
leads to Tufte Style boxplots )
QColor JKQTPGraphBoxplotStyleMixin::getMeanColor | ( | ) | const |
set the color of the symbol for the mean, or mean line
QColor JKQTPGraphBoxplotStyleMixin::getMeanFillColor | ( | ) | const |
set the color of filling of the symbol for the mean
qreal JKQTPGraphBoxplotStyleMixin::getMeanLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of Mean lines
QVector< qreal > JKQTPGraphBoxplotStyleMixin::getMeanLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of Mean lines
QPen JKQTPGraphBoxplotStyleMixin::getMeanLinePen | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
constructs a QPen from the line styling properties to draw the mean line
Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getMeanLineStyle | ( | ) | const |
get the line style of Mean lines
double JKQTPGraphBoxplotStyleMixin::getMeanLineWidth | ( | ) | const |
get the line width of the symbol for the mean outline, or mean line (in pt)
MeanMode JKQTPGraphBoxplotStyleMixin::getMeanMode | ( | ) | const |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)
double JKQTPGraphBoxplotStyleMixin::getMeanSize | ( | ) | const |
get the size (=diameter in pt) of the symbol for the mean (in pt)
QBrush JKQTPGraphBoxplotStyleMixin::getMeanSymbolBrush | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
constructs a QPen from the line styling properties
QFont JKQTPGraphBoxplotStyleMixin::getMeanSymbolFont | ( | ) | const |
generate a QFont for darwing symbols
QString JKQTPGraphBoxplotStyleMixin::getMeanSymbolFontName | ( | ) | const |
get the font to be used for mean character symbols JKQTPCharacterSymbol+QChar
('').unicode()
QPen JKQTPGraphBoxplotStyleMixin::getMeanSymbolPen | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
constructs a QPen from the line styling properties to draw the mean symbol
JKQTPGraphSymbols JKQTPGraphBoxplotStyleMixin::getMeanSymbolType | ( | ) | const |
get the type of the symbol for the mean
QBrush JKQTPGraphBoxplotStyleMixin::getMedianLineBrush | ( | ) | const |
gets the brush used to fill the line area of median lines
Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getMedianLineCapStyle | ( | ) | const |
gets the cap style of median lines
QColor JKQTPGraphBoxplotStyleMixin::getMedianLineColor | ( | ) | const |
get the color of median lines
qreal JKQTPGraphBoxplotStyleMixin::getMedianLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of median lines
QVector< qreal > JKQTPGraphBoxplotStyleMixin::getMedianLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of median lines
Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getMedianLineJoinStyle | ( | ) | const |
returns the join style of median lines
Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getMedianLineStyle | ( | ) | const |
get the line style of median lines
double JKQTPGraphBoxplotStyleMixin::getMedianLineWidth | ( | ) | const |
get the width [pt] of median lines
QPen JKQTPGraphBoxplotStyleMixin::getMedianPen | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
build a pen to be used for drawing medians
double JKQTPGraphBoxplotStyleMixin::getRelativeNotchIndent | ( | ) | const |
single-sided indention of the notch (if any), relative to the box width (default: 0.25)
double JKQTPGraphBoxplotStyleMixin::getRelativeWhiskerWidth | ( | ) | const |
width of the whiskers, relative to the box width (default: 0.5)
QBrush JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineBrush | ( | ) | const |
gets the brush used to fill the line area of whisker cap lines
Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineCapStyle | ( | ) | const |
gets the cap style of whisker cap lines
QColor JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineColor | ( | ) | const |
get the color of whisker cap lines
qreal JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of whisker cap lines
QVector< qreal > JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of whisker cap lines
Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineJoinStyle | ( | ) | const |
returns the join style of whisker cap lines
Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineStyle | ( | ) | const |
get the line style of whisker cap lines
double JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineWidth | ( | ) | const |
get the width [pt] of whisker cap lines
QPen JKQTPGraphBoxplotStyleMixin::getWhiskerCapPen | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
build a pen to be used for drawing whisker caps
QBrush JKQTPGraphBoxplotStyleMixin::getWhiskerLineBrush | ( | ) | const |
gets the brush used to fill the line area of whisker lines
Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineCapStyle | ( | ) | const |
gets the cap style of whisker lines
QColor JKQTPGraphBoxplotStyleMixin::getWhiskerLineColor | ( | ) | const |
get the color of whisker lines
qreal JKQTPGraphBoxplotStyleMixin::getWhiskerLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of whisker lines
QVector< qreal > JKQTPGraphBoxplotStyleMixin::getWhiskerLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of whisker lines
Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineJoinStyle | ( | ) | const |
returns the join style of whisker lines
Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineStyle | ( | ) | const |
get the line style of whisker lines
double JKQTPGraphBoxplotStyleMixin::getWhiskerLineWidth | ( | ) | const |
get the width [pt] of whisker lines
QPen JKQTPGraphBoxplotStyleMixin::getWhiskerPen | ( | JKQTPEnhancedPainter & | painter, |
JKQTBasePlotter * | parent | ||
) | const |
build a pen to be used for drawing whiskers
void JKQTPGraphBoxplotStyleMixin::initBoxplotStyle | ( | JKQTBasePlotter * | parent, |
int & | parentPlotStyle | ||
) |
|
protected |
draws a horizontal boxplot, with all coordinates/sizes given in coordinates of the given painter, using the style properties declared in this class. Provide a parameter with JKQTP_NAN
of you don't want it to be drawn, or don't know its value
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
yp | y-coordinate of the boxplot center |
ypbottom | y-coordinate of the boxplot box bottom edge |
yptop | y-coordinate of the boxplot box top edge |
minp | x-coordinate of the minimum (lower whisker) |
q25p | x-coordinate of the 25% quartile (lower box border) |
medianp | x-coordinate the median |
q75p | x-coordinate of the 75% quartile (upper box border) |
maxp | x-coordinate of the maximum (upper whisker) |
meanp | x-coordinate of the mean (symbol or line) |
notchLowerp | x-coordinate of the lower (near qe5p ) end of the notch interval |
notchUpperp | x-coordinate of the upper (near q75p ) end of the notch interval |
|
protected |
draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g. in a plot legend
|
protected |
plot a symbol at location x,y (in painter coordinates), using the current style
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
x | x-coordinate of the symbol center |
y | y-coordinate of the symbol center |
|
protected |
draws a vertical boxplot, with all coordinates/sizes given in coordinates of the given painter, using the style properties declared in this class. Provide a parameter with JKQTP_NAN
of you don't want it to be drawn, or don't know its value
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
xp | x-coordinate of the boxplot center |
xpleft | x-coordinate of the boxplot box left edge |
xpright | x-coordinate of the boxplot box right edge |
minp | y-coordinate of the minimum (lower whisker) |
q25p | y-coordinate of the 25% quartile (lower box border) |
medianp | y-coordinate the median |
q75p | y-coordinate of the 75% quartile (upper box border) |
maxp | y-coordinate of the maximum (upper whisker) |
meanp | y-coordinate of the mean (symbol or line) |
notchLowerp | y-coordinate of the lower (near qe5p ) end of the notch interval |
notchUpperp | y-coordinate of the upper (near q75p ) end of the notch interval |
|
protected |
draw a small, stylized, vertical symbol into rect that symbolizes a boxplot, e.g. in a plot legend
void JKQTPGraphBoxplotStyleMixin::setBoxplotColor | ( | QColor | c, |
JKQTBasePlotter * | parent | ||
) |
set the color of the graph (colors all elements, based on the given color c )
void JKQTPGraphBoxplotStyleMixin::setBoxplotColor | ( | QColor | c, |
QColor | bc, | ||
JKQTBasePlotter * | parent | ||
) |
set the color of the graph (colors all elements, based on the given color c , sets background colors from bc )
void JKQTPGraphBoxplotStyleMixin::setBoxWidthAbsolute | ( | double | __value | ) |
width of box in pt.
void JKQTPGraphBoxplotStyleMixin::setDrawBox | ( | bool | __value | ) |
enables/disables drawing of the actual box of the boxplot (false
leads to Tufte Style boxplots )
void JKQTPGraphBoxplotStyleMixin::setMeanColor | ( | const QColor & | __value | ) |
set the color of the symbol for the mean, or mean line
void JKQTPGraphBoxplotStyleMixin::setMeanFillColor | ( | const QColor & | __value | ) |
set the color of filling of the symbol for the mean
void JKQTPGraphBoxplotStyleMixin::setMeanLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of Mean lines
void JKQTPGraphBoxplotStyleMixin::setMeanLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of Mean lines
void JKQTPGraphBoxplotStyleMixin::setMeanLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of Mean lines
void JKQTPGraphBoxplotStyleMixin::setMeanLineWidth | ( | double | __value | ) |
set the line width of the symbol for the mean outline, or mean line (in pt)
void JKQTPGraphBoxplotStyleMixin::setMeanMode | ( | MeanMode | __value | ) |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)
void JKQTPGraphBoxplotStyleMixin::setMeanSize | ( | double | __value | ) |
set the size (=diameter in pt) of the symbol for the mean (in pt)
void JKQTPGraphBoxplotStyleMixin::setMeanSymbolFontName | ( | const QString & | __value | ) |
set the font to be used for mean character symbols JKQTPCharacterSymbol+QChar
('').unicode()
void JKQTPGraphBoxplotStyleMixin::setMeanSymbolType | ( | JKQTPGraphSymbols | __value | ) |
set the type of the symbol for the mean
void JKQTPGraphBoxplotStyleMixin::setMedianLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineColor | ( | QColor | __value | ) |
set the color of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of median lines
void JKQTPGraphBoxplotStyleMixin::setMedianLineWidth | ( | double | __value | ) |
set the width [pt] of median lines
void JKQTPGraphBoxplotStyleMixin::setRelativeNotchIndent | ( | double | __value | ) |
single-sided indention of the notch (if any), relative to the box width (default: 0.25)
void JKQTPGraphBoxplotStyleMixin::setRelativeWhiskerWidth | ( | double | __value | ) |
width of the whiskers, relative to the box width (default: 0.5)
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineColor | ( | QColor | __value | ) |
set the color of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineWidth | ( | double | __value | ) |
set the width [pt] of whisker cap lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineColor | ( | QColor | __value | ) |
set the color of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of whisker lines
void JKQTPGraphBoxplotStyleMixin::setWhiskerLineWidth | ( | double | __value | ) |
set the width [pt] of whisker lines
|
private |
width of box in pt.
|
private |
enables/disables drawing of the actual box of the boxplot (false
leads to Tufte Style boxplots )
|
private |
color of the symbol filling
|
private |
font to be used for character mean symbols JKQTPCharacterSymbol+QChar
('').unicode()
|
private |
outline color of the symbol or line pen of the mean-line
|
private |
width (in pt) of the lines used to plot the symbol for the data points, given in pt
|
private |
size (diameter in pt) of the symbol for the data points, given in pt
|
private |
which symbol to use for the datapoints
|
private |
line style of the median lines
|
private |
line style of the whisker cap lines
|
private |
line style of the whisker lines
|
private |
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)
|
private |
line width (in pt) of the median lines
|
private |
single-sided indention of the notch (if any), relative to the box width (default: 0.25)
|
private |
width of the whiskers, relative to the box width (default: 0.5)
|
private |
line width (in pt) of the whisker cap lines
|
private |
line width (in pt) of the whisker lines