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

#include <jkqtpviolinplotstylingmixins.h>

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

Public Types

enum  ViolinPositionMode {
  ViolinLeft ,
  ViolinBottom =ViolinLeft ,
  ViolinRight ,
  ViolinTop =ViolinRight ,
  ViolinBoth
}
 defines where to draw the violin graph with respect to the violin center position More...
 
enum  ViolinStyle {
  SmoothViolin ,
  StepViolin ,
  BoxViolin
}
 defines how to draw the violin graph More...
 

Public Member Functions

 JKQTPGraphViolinplotStyleMixin ()
 class constructor
 
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)
 
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 getRelativeWhiskerWidth () const
 width of the whiskers, relative to the box width (default: 0.5)
 
ViolinPositionMode getViolinPositionMode () const
 returns the position mode of the violin plot
 
ViolinStyle getViolinStyle () const
 returns the style of the violin plot
 
double getViolinWidthAbsolute () const
 width of box in pt.
 
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 initViolinplotStyle (JKQTBasePlotter *parent, int &parentPlotStyle)
 
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 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 setRelativeWhiskerWidth (double __value)
 width of the whiskers, relative to the box width (default: 0.5)
 
void setViolinplotColor (QColor c, JKQTBasePlotter *parent)
 set the color of the graph (colors all elements, based on the given color c )
 
void setViolinplotColor (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 setViolinPositionMode (ViolinPositionMode positionMode)
 set the position mode of the violin plot
 
void setViolinStyle (ViolinStyle style)
 set the style of the violin plot
 
void setViolinWidthAbsolute (double __value)
 width of box in pt.
 
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 plotHorizontalKeyMarker (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, const QRectF &rect) const
 draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g. in a plot legend
 
void plotHorizontalViolinplot (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double yp, double ypbottom, double yptop, const QVector< double > &violin_cat, const QVector< double > &violin_freq, double minp, double medianp, double maxp, double meanp=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 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 plotVerticalKeyMarker (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, const QRectF &rect) const
 draw a small, stylized, vertical symbol into rect that symbolizes a boxplot, e.g. in a plot legend
 
void plotVerticalViolinplot (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double xp, double xpleft, double xpright, const QVector< double > &violin_cat, const QVector< double > &violin_freq, double minp, double medianp, double maxp, double meanp=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
 

Private Attributes

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
 
ViolinPositionMode m_violinPositionMode
 the position mode of the violin plot
 
ViolinStyle m_violinStyle
 the style of the violin plot
 
QPen m_whiskerCapLinePen
 line style of the whisker cap lines
 
QPen m_whiskerLinePen
 line style of the whisker lines
 
double medianLineWidth
 line width (in pt) of the median lines
 
double relativeWhiskerWidth
 width of the whiskers, relative to the box width (default: 0.5)
 
double violinWidthAbsolute
 width of box in pt.
 
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 Violinplots.

Member Enumeration Documentation

◆ ViolinPositionMode

defines where to draw the violin graph with respect to the violin center position

Enumerator
ViolinLeft 

draw violin on the left hand side only (for vertical violins)

ViolinBottom 

draw violin on the bottom side only (for horizontal violins)

ViolinRight 

draw violin on the right hand side only (for vertical violins)

ViolinTop 

draw violin on the top side only (for horizontal violins)

ViolinBoth 

draw violin on the left+right or top+bottom side

◆ ViolinStyle

defines how to draw the violin graph

Enumerator
SmoothViolin 

connect all violin points by lines, resulting in a (nearly) smooth curve

StepViolin 

connect violin points by a steped line, but fully filled

br

BoxViolin 

violin datapoints are drawn like a boxplot

br

Constructor & Destructor Documentation

◆ JKQTPGraphViolinplotStyleMixin()

JKQTPGraphViolinplotStyleMixin::JKQTPGraphViolinplotStyleMixin ( )

class constructor

Member Function Documentation

◆ getMeanColor()

QColor JKQTPGraphViolinplotStyleMixin::getMeanColor ( ) const

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

◆ getMeanFillColor()

QColor JKQTPGraphViolinplotStyleMixin::getMeanFillColor ( ) const

set the color of filling of the symbol for the mean

◆ getMeanLineDashOffset()

qreal JKQTPGraphViolinplotStyleMixin::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 > JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getMeanLinePen ( JKQTPEnhancedPainter painter,
JKQTBasePlotter parent 
) const

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

◆ getMeanLineStyle()

Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getMeanLineStyle ( ) const

get the line style of Mean lines

◆ getMeanLineWidth()

double JKQTPGraphViolinplotStyleMixin::getMeanLineWidth ( ) const

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

◆ getMeanSize()

double JKQTPGraphViolinplotStyleMixin::getMeanSize ( ) const

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

◆ getMeanSymbolBrush()

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

constructs a QPen from the line styling properties

◆ getMeanSymbolFont()

QFont JKQTPGraphViolinplotStyleMixin::getMeanSymbolFont ( ) const

generate a QFont for darwing symbols

◆ getMeanSymbolFontName()

QString JKQTPGraphViolinplotStyleMixin::getMeanSymbolFontName ( ) const

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

◆ getMeanSymbolPen()

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

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

◆ getMeanSymbolType()

JKQTPGraphSymbols JKQTPGraphViolinplotStyleMixin::getMeanSymbolType ( ) const

get the type of the symbol for the mean

◆ getMedianLineBrush()

QBrush JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getMedianLineCapStyle ( ) const

gets the cap style of median lines

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

◆ getMedianLineColor()

QColor JKQTPGraphViolinplotStyleMixin::getMedianLineColor ( ) const

get the color of median lines

◆ getMedianLineDashOffset()

qreal JKQTPGraphViolinplotStyleMixin::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 > JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getMedianLineJoinStyle ( ) const

returns the join style of median lines

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

◆ getMedianLineStyle()

Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getMedianLineStyle ( ) const

get the line style of median lines

◆ getMedianLineWidth()

double JKQTPGraphViolinplotStyleMixin::getMedianLineWidth ( ) const

get the width [pt] of median lines

◆ getMedianPen()

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

build a pen to be used for drawing medians

◆ getRelativeWhiskerWidth()

double JKQTPGraphViolinplotStyleMixin::getRelativeWhiskerWidth ( ) const

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

◆ getViolinPositionMode()

ViolinPositionMode JKQTPGraphViolinplotStyleMixin::getViolinPositionMode ( ) const

returns the position mode of the violin plot

◆ getViolinStyle()

ViolinStyle JKQTPGraphViolinplotStyleMixin::getViolinStyle ( ) const

returns the style of the violin plot

◆ getViolinWidthAbsolute()

double JKQTPGraphViolinplotStyleMixin::getViolinWidthAbsolute ( ) 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

◆ getWhiskerCapLineBrush()

QBrush JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineCapStyle ( ) const

gets the cap style of whisker cap lines

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

◆ getWhiskerCapLineColor()

QColor JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineColor ( ) const

get the color of whisker cap lines

◆ getWhiskerCapLineDashOffset()

qreal JKQTPGraphViolinplotStyleMixin::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 > JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineJoinStyle ( ) const

returns the join style of whisker cap lines

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

◆ getWhiskerCapLineStyle()

Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineStyle ( ) const

get the line style of whisker cap lines

◆ getWhiskerCapLineWidth()

double JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineWidth ( ) const

get the width [pt] of whisker cap lines

◆ getWhiskerCapPen()

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

build a pen to be used for drawing whisker caps

◆ getWhiskerLineBrush()

QBrush JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getWhiskerLineCapStyle ( ) const

gets the cap style of whisker lines

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

◆ getWhiskerLineColor()

QColor JKQTPGraphViolinplotStyleMixin::getWhiskerLineColor ( ) const

get the color of whisker lines

◆ getWhiskerLineDashOffset()

qreal JKQTPGraphViolinplotStyleMixin::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 > JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::getWhiskerLineJoinStyle ( ) const

returns the join style of whisker lines

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

◆ getWhiskerLineStyle()

Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getWhiskerLineStyle ( ) const

get the line style of whisker lines

◆ getWhiskerLineWidth()

double JKQTPGraphViolinplotStyleMixin::getWhiskerLineWidth ( ) const

get the width [pt] of whisker lines

◆ getWhiskerPen()

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

build a pen to be used for drawing whiskers

◆ initViolinplotStyle()

void JKQTPGraphViolinplotStyleMixin::initViolinplotStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle 
)

◆ plotHorizontalKeyMarker()

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

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

◆ plotHorizontalViolinplot()

void JKQTPGraphViolinplotStyleMixin::plotHorizontalViolinplot ( JKQTBasePlotter parent,
JKQTPEnhancedPainter painter,
double  yp,
double  ypbottom,
double  yptop,
const QVector< double > &  violin_cat,
const QVector< double > &  violin_freq,
double  minp,
double  medianp,
double  maxp,
double  meanp = 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
violin_catcategory-dataset for the violin (x-values of KDE/histogram/...)
violin_freqfrequency/count-dataset for the violin (y-values/frequencies of KDE/histogram/...)
minpx-coordinate of the minimum (lower whisker)
medianpx-coordinate the median
maxpx-coordinate of the maximum (upper whisker)
meanpx-coordinate of the mean (symbol or line)

◆ plotStyledMeanSymbol()

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

◆ plotVerticalKeyMarker()

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

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

◆ plotVerticalViolinplot()

void JKQTPGraphViolinplotStyleMixin::plotVerticalViolinplot ( JKQTBasePlotter parent,
JKQTPEnhancedPainter painter,
double  xp,
double  xpleft,
double  xpright,
const QVector< double > &  violin_cat,
const QVector< double > &  violin_freq,
double  minp,
double  medianp,
double  maxp,
double  meanp = 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
violin_catcategory-dataset for the violin (y-values of KDE/histogram/...)
violin_freqfrequency/count-dataset for the violin (y-values/frequencies of KDE/histogram/...)
minpy-coordinate of the minimum (lower whisker)
medianpy-coordinate the median
maxpy-coordinate of the maximum (upper whisker)
meanpy-coordinate of the mean (symbol or line)

◆ setMeanColor()

void JKQTPGraphViolinplotStyleMixin::setMeanColor ( const QColor &  __value)

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

◆ setMeanFillColor()

void JKQTPGraphViolinplotStyleMixin::setMeanFillColor ( const QColor &  __value)

set the color of filling of the symbol for the mean

◆ setMeanLineDashOffset()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setMeanLineStyle ( Qt::PenStyle  __value)

set the line style of Mean lines

◆ setMeanLineWidth()

void JKQTPGraphViolinplotStyleMixin::setMeanLineWidth ( double  __value)

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

◆ setMeanSize()

void JKQTPGraphViolinplotStyleMixin::setMeanSize ( double  __value)

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

◆ setMeanSymbolFontName()

void JKQTPGraphViolinplotStyleMixin::setMeanSymbolFontName ( const QString &  __value)

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

◆ setMeanSymbolType()

void JKQTPGraphViolinplotStyleMixin::setMeanSymbolType ( JKQTPGraphSymbols  __value)

set the type of the symbol for the mean

◆ setMedianLineBrush()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setMedianLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of median lines

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

◆ setMedianLineColor()

void JKQTPGraphViolinplotStyleMixin::setMedianLineColor ( QColor  __value)

set the color of median lines

◆ setMedianLineDashOffset()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setMedianLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of median lines

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

◆ setMedianLineStyle()

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

set the line style of median lines

◆ setMedianLineWidth()

void JKQTPGraphViolinplotStyleMixin::setMedianLineWidth ( double  __value)

set the width [pt] of median lines

◆ setRelativeWhiskerWidth()

void JKQTPGraphViolinplotStyleMixin::setRelativeWhiskerWidth ( double  __value)

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

◆ setViolinplotColor() [1/2]

void JKQTPGraphViolinplotStyleMixin::setViolinplotColor ( QColor  c,
JKQTBasePlotter parent 
)

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

◆ setViolinplotColor() [2/2]

void JKQTPGraphViolinplotStyleMixin::setViolinplotColor ( 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 )

◆ setViolinPositionMode()

void JKQTPGraphViolinplotStyleMixin::setViolinPositionMode ( ViolinPositionMode  positionMode)

set the position mode of the violin plot

◆ setViolinStyle()

void JKQTPGraphViolinplotStyleMixin::setViolinStyle ( ViolinStyle  style)

set the style of the violin plot

◆ setViolinWidthAbsolute()

void JKQTPGraphViolinplotStyleMixin::setViolinWidthAbsolute ( 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

◆ setWhiskerCapLineBrush()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineColor ( QColor  __value)

set the color of whisker cap lines

◆ setWhiskerCapLineDashOffset()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineStyle ( Qt::PenStyle  __value)

set the line style of whisker cap lines

◆ setWhiskerCapLineWidth()

void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineWidth ( double  __value)

set the width [pt] of whisker cap lines

◆ setWhiskerLineBrush()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setWhiskerLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of whisker lines

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

◆ setWhiskerLineColor()

void JKQTPGraphViolinplotStyleMixin::setWhiskerLineColor ( QColor  __value)

set the color of whisker lines

◆ setWhiskerLineDashOffset()

void JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::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 JKQTPGraphViolinplotStyleMixin::setWhiskerLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of whisker lines

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

◆ setWhiskerLineStyle()

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

set the line style of whisker lines

◆ setWhiskerLineWidth()

void JKQTPGraphViolinplotStyleMixin::setWhiskerLineWidth ( double  __value)

set the width [pt] of whisker lines

Member Data Documentation

◆ m_meanSymbolFillColor

QColor JKQTPGraphViolinplotStyleMixin::m_meanSymbolFillColor
private

color of the symbol filling

◆ m_meanSymbolFontName

QString JKQTPGraphViolinplotStyleMixin::m_meanSymbolFontName
private

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

◆ m_meanSymbolLinePen

QPen JKQTPGraphViolinplotStyleMixin::m_meanSymbolLinePen
private

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

◆ m_meanSymbolLineWidth

double JKQTPGraphViolinplotStyleMixin::m_meanSymbolLineWidth
private

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

◆ m_meanSymbolSize

double JKQTPGraphViolinplotStyleMixin::m_meanSymbolSize
private

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

◆ m_meanSymbolType

JKQTPGraphSymbols JKQTPGraphViolinplotStyleMixin::m_meanSymbolType
private

which symbol to use for the datapoints

◆ m_medianLinePen

QPen JKQTPGraphViolinplotStyleMixin::m_medianLinePen
private

line style of the median lines

◆ m_violinPositionMode

ViolinPositionMode JKQTPGraphViolinplotStyleMixin::m_violinPositionMode
private

the position mode of the violin plot

◆ m_violinStyle

ViolinStyle JKQTPGraphViolinplotStyleMixin::m_violinStyle
private

the style of the violin plot

◆ m_whiskerCapLinePen

QPen JKQTPGraphViolinplotStyleMixin::m_whiskerCapLinePen
private

line style of the whisker cap lines

◆ m_whiskerLinePen

QPen JKQTPGraphViolinplotStyleMixin::m_whiskerLinePen
private

line style of the whisker lines

◆ medianLineWidth

double JKQTPGraphViolinplotStyleMixin::medianLineWidth
private

line width (in pt) of the median lines

◆ relativeWhiskerWidth

double JKQTPGraphViolinplotStyleMixin::relativeWhiskerWidth
private

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

◆ violinWidthAbsolute

double JKQTPGraphViolinplotStyleMixin::violinWidthAbsolute
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

◆ whiskerCapLineWidth

double JKQTPGraphViolinplotStyleMixin::whiskerCapLineWidth
private

line width (in pt) of the whisker cap lines

◆ whiskerLineWidth

double JKQTPGraphViolinplotStyleMixin::whiskerLineWidth
private

line width (in pt) of the whisker lines


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