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
Loading...
Searching...
No Matches

Styling Mix-In for Boxplots. More...

#include <jkqtpboxplotstylingmixins.h>

Inheritance diagram for JKQTPGraphBoxplotStyleMixin:
[legend]
Collaboration diagram for JKQTPGraphBoxplotStyleMixin:
[legend]

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
 

Detailed Description

Styling Mix-In for Boxplots.

The example Example (JKQTPlotter): Styling different aspects of boxplots discusses different options to style boxplots:

Member Enumeration Documentation

◆ MeanMode

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)

Constructor & Destructor Documentation

◆ JKQTPGraphBoxplotStyleMixin()

JKQTPGraphBoxplotStyleMixin::JKQTPGraphBoxplotStyleMixin ( )

class constructor

Member Function Documentation

◆ getBoxWidthAbsolute()

double JKQTPGraphBoxplotStyleMixin::getBoxWidthAbsolute ( ) const

width of box in pt.

Note
If several boxplots are drawn, the width is typically calculated, based on a relative width and the position distances, see JKQTPBoxplotVerticalGraph::boxWidthRelative

◆ getDrawBox()

bool JKQTPGraphBoxplotStyleMixin::getDrawBox ( ) const

enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )

◆ getMeanColor()

QColor JKQTPGraphBoxplotStyleMixin::getMeanColor ( ) const

set the color of the symbol for the mean, or mean line

◆ getMeanFillColor()

QColor JKQTPGraphBoxplotStyleMixin::getMeanFillColor ( ) const

set the color of filling of the symbol for the mean

◆ getMeanLineDashOffset()

qreal JKQTPGraphBoxplotStyleMixin::getMeanLineDashOffset ( ) const

returns the dash offset for a custom dash style of Mean lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getMeanLineDashPattern()

QVector< qreal > JKQTPGraphBoxplotStyleMixin::getMeanLineDashPattern ( ) const

gets the dash pattern for a custom dash style of Mean lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getMeanLinePen()

QPen JKQTPGraphBoxplotStyleMixin::getMeanLinePen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

constructs a QPen from the line styling properties to draw the mean line

◆ getMeanLineStyle()

Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getMeanLineStyle ( ) const

get the line style of Mean lines

◆ getMeanLineWidth()

double JKQTPGraphBoxplotStyleMixin::getMeanLineWidth ( ) const

get the line width of the symbol for the mean outline, or mean line (in pt)

◆ getMeanMode()

MeanMode JKQTPGraphBoxplotStyleMixin::getMeanMode ( ) const

specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)

◆ getMeanSize()

double JKQTPGraphBoxplotStyleMixin::getMeanSize ( ) const

get the size (=diameter in pt) of the symbol for the mean (in pt)

◆ getMeanSymbolBrush()

QBrush JKQTPGraphBoxplotStyleMixin::getMeanSymbolBrush ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

constructs a QPen from the line styling properties

◆ getMeanSymbolFont()

QFont JKQTPGraphBoxplotStyleMixin::getMeanSymbolFont ( ) const

generate a QFont for darwing symbols

◆ getMeanSymbolFontName()

QString JKQTPGraphBoxplotStyleMixin::getMeanSymbolFontName ( ) const

get the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('').unicode()

◆ getMeanSymbolPen()

QPen JKQTPGraphBoxplotStyleMixin::getMeanSymbolPen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

constructs a QPen from the line styling properties to draw the mean symbol

◆ getMeanSymbolType()

JKQTPGraphSymbols JKQTPGraphBoxplotStyleMixin::getMeanSymbolType ( ) const

get the type of the symbol for the mean

◆ getMedianLineBrush()

QBrush JKQTPGraphBoxplotStyleMixin::getMedianLineBrush ( ) const

gets the brush used to fill the line area of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ getMedianLineCapStyle()

Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getMedianLineCapStyle ( ) const

gets the cap style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ getMedianLineColor()

QColor JKQTPGraphBoxplotStyleMixin::getMedianLineColor ( ) const

get the color of median lines

◆ getMedianLineDashOffset()

qreal JKQTPGraphBoxplotStyleMixin::getMedianLineDashOffset ( ) const

returns the dash offset for a custom dash style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getMedianLineDashPattern()

QVector< qreal > JKQTPGraphBoxplotStyleMixin::getMedianLineDashPattern ( ) const

gets the dash pattern for a custom dash style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getMedianLineJoinStyle()

Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getMedianLineJoinStyle ( ) const

returns the join style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ getMedianLineStyle()

Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getMedianLineStyle ( ) const

get the line style of median lines

◆ getMedianLineWidth()

double JKQTPGraphBoxplotStyleMixin::getMedianLineWidth ( ) const

get the width [pt] of median lines

◆ getMedianPen()

QPen JKQTPGraphBoxplotStyleMixin::getMedianPen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

build a pen to be used for drawing medians

◆ getRelativeNotchIndent()

double JKQTPGraphBoxplotStyleMixin::getRelativeNotchIndent ( ) const

single-sided indention of the notch (if any), relative to the box width (default: 0.25)

◆ getRelativeWhiskerWidth()

double JKQTPGraphBoxplotStyleMixin::getRelativeWhiskerWidth ( ) const

width of the whiskers, relative to the box width (default: 0.5)

◆ getWhiskerCapLineBrush()

QBrush JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineBrush ( ) const

gets the brush used to fill the line area of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ getWhiskerCapLineCapStyle()

Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineCapStyle ( ) const

gets the cap style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ getWhiskerCapLineColor()

QColor JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineColor ( ) const

get the color of whisker cap lines

◆ getWhiskerCapLineDashOffset()

qreal JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineDashOffset ( ) const

returns the dash offset for a custom dash style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getWhiskerCapLineDashPattern()

QVector< qreal > JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineDashPattern ( ) const

gets the dash pattern for a custom dash style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getWhiskerCapLineJoinStyle()

Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineJoinStyle ( ) const

returns the join style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ getWhiskerCapLineStyle()

Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineStyle ( ) const

get the line style of whisker cap lines

◆ getWhiskerCapLineWidth()

double JKQTPGraphBoxplotStyleMixin::getWhiskerCapLineWidth ( ) const

get the width [pt] of whisker cap lines

◆ getWhiskerCapPen()

QPen JKQTPGraphBoxplotStyleMixin::getWhiskerCapPen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

build a pen to be used for drawing whisker caps

◆ getWhiskerLineBrush()

QBrush JKQTPGraphBoxplotStyleMixin::getWhiskerLineBrush ( ) const

gets the brush used to fill the line area of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ getWhiskerLineCapStyle()

Qt::PenCapStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineCapStyle ( ) const

gets the cap style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ getWhiskerLineColor()

QColor JKQTPGraphBoxplotStyleMixin::getWhiskerLineColor ( ) const

get the color of whisker lines

◆ getWhiskerLineDashOffset()

qreal JKQTPGraphBoxplotStyleMixin::getWhiskerLineDashOffset ( ) const

returns the dash offset for a custom dash style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getWhiskerLineDashPattern()

QVector< qreal > JKQTPGraphBoxplotStyleMixin::getWhiskerLineDashPattern ( ) const

gets the dash pattern for a custom dash style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getWhiskerLineJoinStyle()

Qt::PenJoinStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineJoinStyle ( ) const

returns the join style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ getWhiskerLineStyle()

Qt::PenStyle JKQTPGraphBoxplotStyleMixin::getWhiskerLineStyle ( ) const

get the line style of whisker lines

◆ getWhiskerLineWidth()

double JKQTPGraphBoxplotStyleMixin::getWhiskerLineWidth ( ) const

get the width [pt] of whisker lines

◆ getWhiskerPen()

QPen JKQTPGraphBoxplotStyleMixin::getWhiskerPen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

build a pen to be used for drawing whiskers

◆ initBoxplotStyle()

void JKQTPGraphBoxplotStyleMixin::initBoxplotStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle 
)

◆ plotHorizontalBoxplot()

void JKQTPGraphBoxplotStyleMixin::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
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

Parameters
parentparent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation)
painterthe QPainter to draw to
ypy-coordinate of the boxplot center
ypbottomy-coordinate of the boxplot box bottom edge
yptopy-coordinate of the boxplot box top edge
minpx-coordinate of the minimum (lower whisker)
q25px-coordinate of the 25% quartile (lower box border)
medianpx-coordinate the median
q75px-coordinate of the 75% quartile (upper box border)
maxpx-coordinate of the maximum (upper whisker)
meanpx-coordinate of the mean (symbol or line)
notchLowerpx-coordinate of the lower (near qe5p ) end of the notch interval
notchUpperpx-coordinate of the upper (near q75p ) end of the notch interval

◆ plotHorizontalKeyMarker()

void JKQTPGraphBoxplotStyleMixin::plotHorizontalKeyMarker ( JKQTBasePlotter parent,
JKQTPEnhancedPainter painter,
const QRectF &  rect 
)
protected

draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g. in a plot legend

◆ plotStyledMeanSymbol()

void JKQTPGraphBoxplotStyleMixin::plotStyledMeanSymbol ( JKQTBasePlotter parent,
JKQTPEnhancedPainter painter,
double  x,
double  y 
) const
protected

plot a symbol at location x,y (in painter coordinates), using the current style

Parameters
parentparent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation)
painterthe QPainter to draw to
xx-coordinate of the symbol center
yy-coordinate of the symbol center

◆ plotVerticalBoxplot()

void JKQTPGraphBoxplotStyleMixin::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
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

Parameters
parentparent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation)
painterthe QPainter to draw to
xpx-coordinate of the boxplot center
xpleftx-coordinate of the boxplot box left edge
xprightx-coordinate of the boxplot box right edge
minpy-coordinate of the minimum (lower whisker)
q25py-coordinate of the 25% quartile (lower box border)
medianpy-coordinate the median
q75py-coordinate of the 75% quartile (upper box border)
maxpy-coordinate of the maximum (upper whisker)
meanpy-coordinate of the mean (symbol or line)
notchLowerpy-coordinate of the lower (near qe5p ) end of the notch interval
notchUpperpy-coordinate of the upper (near q75p ) end of the notch interval

◆ plotVerticalKeyMarker()

void JKQTPGraphBoxplotStyleMixin::plotVerticalKeyMarker ( JKQTBasePlotter parent,
JKQTPEnhancedPainter painter,
const QRectF &  rect 
)
protected

draw a small, stylized, vertical symbol into rect that symbolizes a boxplot, e.g. in a plot legend

◆ setBoxplotColor() [1/2]

void JKQTPGraphBoxplotStyleMixin::setBoxplotColor ( QColor  c,
JKQTBasePlotter parent 
)

set the color of the graph (colors all elements, based on the given color c )

◆ setBoxplotColor() [2/2]

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 )

◆ setBoxWidthAbsolute()

void JKQTPGraphBoxplotStyleMixin::setBoxWidthAbsolute ( double  __value)

width of box in pt.

Note
If several boxplots are drawn, the width is typically calculated, based on a relative width and the position distances, see JKQTPBoxplotVerticalGraph::boxWidthRelative

◆ setDrawBox()

void JKQTPGraphBoxplotStyleMixin::setDrawBox ( bool  __value)

enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )

◆ setMeanColor()

void JKQTPGraphBoxplotStyleMixin::setMeanColor ( const QColor &  __value)

set the color of the symbol for the mean, or mean line

◆ setMeanFillColor()

void JKQTPGraphBoxplotStyleMixin::setMeanFillColor ( const QColor &  __value)

set the color of filling of the symbol for the mean

◆ setMeanLineDashOffset()

void JKQTPGraphBoxplotStyleMixin::setMeanLineDashOffset ( qreal  offset)

sets the dash offset for a custom dash style of Mean lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setMeanLineDashPattern()

void JKQTPGraphBoxplotStyleMixin::setMeanLineDashPattern ( const QVector< qreal > &  pattern)

sets the dash pattern for a custom dash style of Mean lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setMeanLineStyle()

void JKQTPGraphBoxplotStyleMixin::setMeanLineStyle ( Qt::PenStyle  __value)

set the line style of Mean lines

◆ setMeanLineWidth()

void JKQTPGraphBoxplotStyleMixin::setMeanLineWidth ( double  __value)

set the line width of the symbol for the mean outline, or mean line (in pt)

◆ setMeanMode()

void JKQTPGraphBoxplotStyleMixin::setMeanMode ( MeanMode  __value)

specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)

◆ setMeanSize()

void JKQTPGraphBoxplotStyleMixin::setMeanSize ( double  __value)

set the size (=diameter in pt) of the symbol for the mean (in pt)

◆ setMeanSymbolFontName()

void JKQTPGraphBoxplotStyleMixin::setMeanSymbolFontName ( const QString &  __value)

set the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('').unicode()

◆ setMeanSymbolType()

void JKQTPGraphBoxplotStyleMixin::setMeanSymbolType ( JKQTPGraphSymbols  __value)

set the type of the symbol for the mean

◆ setMedianLineBrush()

void JKQTPGraphBoxplotStyleMixin::setMedianLineBrush ( const QBrush &  style)

sets the brush used to fill the line area of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ setMedianLineCapStyle()

void JKQTPGraphBoxplotStyleMixin::setMedianLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ setMedianLineColor()

void JKQTPGraphBoxplotStyleMixin::setMedianLineColor ( QColor  __value)

set the color of median lines

◆ setMedianLineDashOffset()

void JKQTPGraphBoxplotStyleMixin::setMedianLineDashOffset ( qreal  offset)

sets the dash offset for a custom dash style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setMedianLineDashPattern()

void JKQTPGraphBoxplotStyleMixin::setMedianLineDashPattern ( const QVector< qreal > &  pattern)

sets the dash pattern for a custom dash style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setMedianLineJoinStyle()

void JKQTPGraphBoxplotStyleMixin::setMedianLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of median lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ setMedianLineStyle()

void JKQTPGraphBoxplotStyleMixin::setMedianLineStyle ( Qt::PenStyle  __value)

set the line style of median lines

◆ setMedianLineWidth()

void JKQTPGraphBoxplotStyleMixin::setMedianLineWidth ( double  __value)

set the width [pt] of median lines

◆ setRelativeNotchIndent()

void JKQTPGraphBoxplotStyleMixin::setRelativeNotchIndent ( double  __value)

single-sided indention of the notch (if any), relative to the box width (default: 0.25)

◆ setRelativeWhiskerWidth()

void JKQTPGraphBoxplotStyleMixin::setRelativeWhiskerWidth ( double  __value)

width of the whiskers, relative to the box width (default: 0.5)

◆ setWhiskerCapLineBrush()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineBrush ( const QBrush &  style)

sets the brush used to fill the line area of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ setWhiskerCapLineCapStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ setWhiskerCapLineColor()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineColor ( QColor  __value)

set the color of whisker cap lines

◆ setWhiskerCapLineDashOffset()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineDashOffset ( qreal  offset)

sets the dash offset for a custom dash style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setWhiskerCapLineDashPattern()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineDashPattern ( const QVector< qreal > &  pattern)

sets the dash pattern for a custom dash style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setWhiskerCapLineJoinStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of whisker cap lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ setWhiskerCapLineStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineStyle ( Qt::PenStyle  __value)

set the line style of whisker cap lines

◆ setWhiskerCapLineWidth()

void JKQTPGraphBoxplotStyleMixin::setWhiskerCapLineWidth ( double  __value)

set the width [pt] of whisker cap lines

◆ setWhiskerLineBrush()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineBrush ( const QBrush &  style)

sets the brush used to fill the line area of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ setWhiskerLineCapStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ setWhiskerLineColor()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineColor ( QColor  __value)

set the color of whisker lines

◆ setWhiskerLineDashOffset()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineDashOffset ( qreal  offset)

sets the dash offset for a custom dash style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setWhiskerLineDashPattern()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineDashPattern ( const QVector< qreal > &  pattern)

sets the dash pattern for a custom dash style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setWhiskerLineJoinStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of whisker lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ setWhiskerLineStyle()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineStyle ( Qt::PenStyle  __value)

set the line style of whisker lines

◆ setWhiskerLineWidth()

void JKQTPGraphBoxplotStyleMixin::setWhiskerLineWidth ( double  __value)

set the width [pt] of whisker lines

Member Data Documentation

◆ boxWidthAbsolute

double JKQTPGraphBoxplotStyleMixin::boxWidthAbsolute
private

width of box in pt.

Note
If several boxplots are drawn, the width is typically calculated, based on a relative width and the position distances, see JKQTPBoxplotVerticalGraph::boxWidthRelative

◆ drawBox

bool JKQTPGraphBoxplotStyleMixin::drawBox
private

enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )

◆ m_meanSymbolFillColor

QColor JKQTPGraphBoxplotStyleMixin::m_meanSymbolFillColor
private

color of the symbol filling

◆ m_meanSymbolFontName

QString JKQTPGraphBoxplotStyleMixin::m_meanSymbolFontName
private

font to be used for character mean symbols JKQTPCharacterSymbol+QChar('').unicode()

◆ m_meanSymbolLinePen

QPen JKQTPGraphBoxplotStyleMixin::m_meanSymbolLinePen
private

outline color of the symbol or line pen of the mean-line

◆ m_meanSymbolLineWidth

double JKQTPGraphBoxplotStyleMixin::m_meanSymbolLineWidth
private

width (in pt) of the lines used to plot the symbol for the data points, given in pt

◆ m_meanSymbolSize

double JKQTPGraphBoxplotStyleMixin::m_meanSymbolSize
private

size (diameter in pt) of the symbol for the data points, given in pt

◆ m_meanSymbolType

JKQTPGraphSymbols JKQTPGraphBoxplotStyleMixin::m_meanSymbolType
private

which symbol to use for the datapoints

◆ m_medianLinePen

QPen JKQTPGraphBoxplotStyleMixin::m_medianLinePen
private

line style of the median lines

◆ m_whiskerCapLinePen

QPen JKQTPGraphBoxplotStyleMixin::m_whiskerCapLinePen
private

line style of the whisker cap lines

◆ m_whiskerLinePen

QPen JKQTPGraphBoxplotStyleMixin::m_whiskerLinePen
private

line style of the whisker lines

◆ meanMode

MeanMode JKQTPGraphBoxplotStyleMixin::meanMode
private

specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymbolStyleMixin)

◆ medianLineWidth

double JKQTPGraphBoxplotStyleMixin::medianLineWidth
private

line width (in pt) of the median lines

◆ relativeNotchIndent

double JKQTPGraphBoxplotStyleMixin::relativeNotchIndent
private

single-sided indention of the notch (if any), relative to the box width (default: 0.25)

◆ relativeWhiskerWidth

double JKQTPGraphBoxplotStyleMixin::relativeWhiskerWidth
private

width of the whiskers, relative to the box width (default: 0.5)

◆ whiskerCapLineWidth

double JKQTPGraphBoxplotStyleMixin::whiskerCapLineWidth
private

line width (in pt) of the whisker cap lines

◆ whiskerLineWidth

double JKQTPGraphBoxplotStyleMixin::whiskerLineWidth
private

line width (in pt) of the whisker lines


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