![]() |
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 Violinplots. More...
#include <jkqtpviolinplotstylingmixins.h>
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 |
Styling Mix-In for Violinplots.
defines where to draw the violin graph with respect to the violin center position
| JKQTPGraphViolinplotStyleMixin::JKQTPGraphViolinplotStyleMixin | ( | ) |
class constructor
| QColor JKQTPGraphViolinplotStyleMixin::getMeanColor | ( | ) | const |
set the color of the symbol for the mean, or mean line
| QColor JKQTPGraphViolinplotStyleMixin::getMeanFillColor | ( | ) | const |
set the color of filling of the symbol for the mean
| qreal JKQTPGraphViolinplotStyleMixin::getMeanLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of Mean lines
| QVector< qreal > JKQTPGraphViolinplotStyleMixin::getMeanLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of Mean lines
| QPen JKQTPGraphViolinplotStyleMixin::getMeanLinePen | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
constructs a QPen from the line styling properties to draw the mean line
| Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getMeanLineStyle | ( | ) | const |
get the line style of Mean lines
| double JKQTPGraphViolinplotStyleMixin::getMeanLineWidth | ( | ) | const |
get the line width of the symbol for the mean outline, or mean line (in pt)
| double JKQTPGraphViolinplotStyleMixin::getMeanSize | ( | ) | const |
get the size (=diameter in pt) of the symbol for the mean (in pt)
| QBrush JKQTPGraphViolinplotStyleMixin::getMeanSymbolBrush | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
constructs a QPen from the line styling properties
| QFont JKQTPGraphViolinplotStyleMixin::getMeanSymbolFont | ( | ) | const |
generate a QFont for darwing symbols
| QString JKQTPGraphViolinplotStyleMixin::getMeanSymbolFontName | ( | ) | const |
get the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('').unicode()
| QPen JKQTPGraphViolinplotStyleMixin::getMeanSymbolPen | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
constructs a QPen from the line styling properties to draw the mean symbol
| JKQTPGraphSymbols JKQTPGraphViolinplotStyleMixin::getMeanSymbolType | ( | ) | const |
get the type of the symbol for the mean
| QBrush JKQTPGraphViolinplotStyleMixin::getMedianLineBrush | ( | ) | const |
gets the brush used to fill the line area of median lines
| Qt::PenCapStyle JKQTPGraphViolinplotStyleMixin::getMedianLineCapStyle | ( | ) | const |
gets the cap style of median lines
| QColor JKQTPGraphViolinplotStyleMixin::getMedianLineColor | ( | ) | const |
get the color of median lines
| qreal JKQTPGraphViolinplotStyleMixin::getMedianLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of median lines
| QVector< qreal > JKQTPGraphViolinplotStyleMixin::getMedianLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of median lines
| Qt::PenJoinStyle JKQTPGraphViolinplotStyleMixin::getMedianLineJoinStyle | ( | ) | const |
returns the join style of median lines
| Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getMedianLineStyle | ( | ) | const |
get the line style of median lines
| double JKQTPGraphViolinplotStyleMixin::getMedianLineWidth | ( | ) | const |
get the width [pt] of median lines
| QPen JKQTPGraphViolinplotStyleMixin::getMedianPen | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
build a pen to be used for drawing medians
| double JKQTPGraphViolinplotStyleMixin::getRelativeWhiskerWidth | ( | ) | const |
width of the whiskers, relative to the box width (default: 0.5)
| ViolinPositionMode JKQTPGraphViolinplotStyleMixin::getViolinPositionMode | ( | ) | const |
returns the position mode of the violin plot
| ViolinStyle JKQTPGraphViolinplotStyleMixin::getViolinStyle | ( | ) | const |
returns the style of the violin plot
| double JKQTPGraphViolinplotStyleMixin::getViolinWidthAbsolute | ( | ) | const |
width of box in pt.
| QBrush JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineBrush | ( | ) | const |
gets the brush used to fill the line area of whisker cap lines
| Qt::PenCapStyle JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineCapStyle | ( | ) | const |
gets the cap style of whisker cap lines
| QColor JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineColor | ( | ) | const |
get the color of whisker cap lines
| qreal JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of whisker cap lines
| QVector< qreal > JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of whisker cap lines
| Qt::PenJoinStyle JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineJoinStyle | ( | ) | const |
returns the join style of whisker cap lines
| Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineStyle | ( | ) | const |
get the line style of whisker cap lines
| double JKQTPGraphViolinplotStyleMixin::getWhiskerCapLineWidth | ( | ) | const |
get the width [pt] of whisker cap lines
| QPen JKQTPGraphViolinplotStyleMixin::getWhiskerCapPen | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
build a pen to be used for drawing whisker caps
| QBrush JKQTPGraphViolinplotStyleMixin::getWhiskerLineBrush | ( | ) | const |
gets the brush used to fill the line area of whisker lines
| Qt::PenCapStyle JKQTPGraphViolinplotStyleMixin::getWhiskerLineCapStyle | ( | ) | const |
gets the cap style of whisker lines
| QColor JKQTPGraphViolinplotStyleMixin::getWhiskerLineColor | ( | ) | const |
get the color of whisker lines
| qreal JKQTPGraphViolinplotStyleMixin::getWhiskerLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of whisker lines
| QVector< qreal > JKQTPGraphViolinplotStyleMixin::getWhiskerLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of whisker lines
| Qt::PenJoinStyle JKQTPGraphViolinplotStyleMixin::getWhiskerLineJoinStyle | ( | ) | const |
returns the join style of whisker lines
| Qt::PenStyle JKQTPGraphViolinplotStyleMixin::getWhiskerLineStyle | ( | ) | const |
get the line style of whisker lines
| double JKQTPGraphViolinplotStyleMixin::getWhiskerLineWidth | ( | ) | const |
get the width [pt] of whisker lines
| QPen JKQTPGraphViolinplotStyleMixin::getWhiskerPen | ( | JKQTPEnhancedPainter & | painter, |
| JKQTBasePlotter * | parent ) const |
build a pen to be used for drawing whiskers
| void JKQTPGraphViolinplotStyleMixin::initViolinplotStyle | ( | JKQTBasePlotter * | parent, |
| int & | parentPlotStyle ) |
|
protected |
draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g. in a plot legend
|
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 |
| violin_cat | category-dataset for the violin (x-values of KDE/histogram/...) |
| violin_freq | frequency/count-dataset for the violin (y-values/frequencies of KDE/histogram/...) |
| minp | x-coordinate of the minimum (lower whisker) |
| medianp | x-coordinate the median |
| maxp | x-coordinate of the maximum (upper whisker) |
| meanp | x-coordinate of the mean (symbol or line) |
|
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 |
draw a small, stylized, vertical symbol into rect that symbolizes a boxplot, e.g. in a plot legend
|
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 |
| violin_cat | category-dataset for the violin (y-values of KDE/histogram/...) |
| violin_freq | frequency/count-dataset for the violin (y-values/frequencies of KDE/histogram/...) |
| minp | y-coordinate of the minimum (lower whisker) |
| medianp | y-coordinate the median |
| maxp | y-coordinate of the maximum (upper whisker) |
| meanp | y-coordinate of the mean (symbol or line) |
| void JKQTPGraphViolinplotStyleMixin::setMeanColor | ( | const QColor & | __value | ) |
set the color of the symbol for the mean, or mean line
| void JKQTPGraphViolinplotStyleMixin::setMeanFillColor | ( | const QColor & | __value | ) |
set the color of filling of the symbol for the mean
| void JKQTPGraphViolinplotStyleMixin::setMeanLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of Mean lines
| void JKQTPGraphViolinplotStyleMixin::setMeanLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of Mean lines
| void JKQTPGraphViolinplotStyleMixin::setMeanLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of Mean lines
| void JKQTPGraphViolinplotStyleMixin::setMeanLineWidth | ( | double | __value | ) |
set the line width of the symbol for the mean outline, or mean line (in pt)
| void JKQTPGraphViolinplotStyleMixin::setMeanSize | ( | double | __value | ) |
set the size (=diameter in pt) of the symbol for the mean (in pt)
| void JKQTPGraphViolinplotStyleMixin::setMeanSymbolFontName | ( | const QString & | __value | ) |
set the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('').unicode()
| void JKQTPGraphViolinplotStyleMixin::setMeanSymbolType | ( | JKQTPGraphSymbols | __value | ) |
set the type of the symbol for the mean
| void JKQTPGraphViolinplotStyleMixin::setMedianLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineColor | ( | QColor | __value | ) |
set the color of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of median lines
| void JKQTPGraphViolinplotStyleMixin::setMedianLineWidth | ( | double | __value | ) |
set the width [pt] of median lines
| void JKQTPGraphViolinplotStyleMixin::setRelativeWhiskerWidth | ( | double | __value | ) |
width of the whiskers, relative to the box width (default: 0.5)
| void JKQTPGraphViolinplotStyleMixin::setViolinplotColor | ( | QColor | c, |
| JKQTBasePlotter * | parent ) |
set the color of the graph (colors all elements, based on the given color c )
| 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 )
| void JKQTPGraphViolinplotStyleMixin::setViolinPositionMode | ( | ViolinPositionMode | positionMode | ) |
set the position mode of the violin plot
| void JKQTPGraphViolinplotStyleMixin::setViolinStyle | ( | ViolinStyle | style | ) |
set the style of the violin plot
| void JKQTPGraphViolinplotStyleMixin::setViolinWidthAbsolute | ( | double | __value | ) |
width of box in pt.
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineColor | ( | QColor | __value | ) |
set the color of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerCapLineWidth | ( | double | __value | ) |
set the width [pt] of whisker cap lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineColor | ( | QColor | __value | ) |
set the color of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineStyle | ( | Qt::PenStyle | __value | ) |
set the line style of whisker lines
| void JKQTPGraphViolinplotStyleMixin::setWhiskerLineWidth | ( | double | __value | ) |
set the width [pt] of whisker lines
|
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 |
the position mode of the violin plot
|
private |
the style of the violin plot
|
private |
line style of the whisker cap lines
|
private |
line style of the whisker lines
|
private |
line width (in pt) of the median lines
|
private |
width of the whiskers, relative to the box width (default: 0.5)
|
private |
width of box in pt.
|
private |
line width (in pt) of the whisker cap lines
|
private |
line width (in pt) of the whisker lines