21#ifndef jkqtpgraphsboxplotstylingmixins_H
22#define jkqtpgraphsboxplotstylingmixins_H
26#include "jkqtplotter/jkqtptools.h"
27#include "jkqtplotter/jkqtplotter_imexport.h"
28#include "jkqtplotter/jkqtplotter_configmacros.h"
29#include "jkqtplotter/jkqtpgraphsbase.h"
30#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
47#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
370 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;
390 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;
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
Styling Mix-In for Boxplots.
Definition jkqtpboxplotstylingmixins.h:46
double whiskerCapLineWidth
line width (in pt) of the whisker cap lines
Definition jkqtpboxplotstylingmixins.h:417
QVector< qreal > getMedianLineDashPattern() const
gets the dash pattern for a custom dash style of median lines
QFont getMeanSymbolFont() const
generate a QFont for darwing symbols
void setMeanLineWidth(double __value)
set the line width of the symbol for the mean outline, or mean line (in pt)
QBrush getWhiskerCapLineBrush() const
gets the brush used to fill the line area of whisker cap lines
QPen getMedianPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
build a pen to be used for drawing medians
qreal getMeanLineDashOffset() const
returns the dash offset for a custom dash style of Mean lines
void setMedianLineDashOffset(qreal offset)
sets the dash offset for a custom dash style of median lines
void setRelativeNotchIndent(double __value)
single-sided indention of the notch (if any), relative to the box width (default: 0....
void setDrawBox(bool __value)
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )
void setWhiskerLineDashOffset(qreal offset)
sets the dash offset for a custom dash style of whisker lines
void setMedianLineBrush(const QBrush &style)
sets the brush used to fill the line area of median lines
QBrush getWhiskerLineBrush() const
gets the brush used to fill the line area of whisker lines
QPen getWhiskerPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
build a pen to be used for drawing whiskers
double medianLineWidth
line width (in pt) of the median lines
Definition jkqtpboxplotstylingmixins.h:421
void setWhiskerCapLineDashOffset(qreal offset)
sets the dash offset for a custom dash style of whisker cap lines
QColor getWhiskerLineColor() const
get the color of whisker lines
void setMeanLineDashOffset(qreal offset)
sets the dash offset for a custom dash style of Mean lines
JKQTPGraphBoxplotStyleMixin()
class constructor
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 ...
QBrush getMeanSymbolBrush(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
constructs a QPen from the line styling properties
void setWhiskerLineColor(QColor __value)
set the color of whisker lines
Qt::PenStyle getWhiskerLineStyle() const
get the line style of whisker lines
QPen getMeanSymbolPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
constructs a QPen from the line styling properties to draw the mean symbol
QString getMeanSymbolFontName() const
get the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('')....
Qt::PenStyle getWhiskerCapLineStyle() const
get the line style 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
qreal getMedianLineDashOffset() const
returns the dash offset for a custom dash style of median lines
void setWhiskerLineCapStyle(Qt::PenCapStyle style)
sets the cap style of whisker lines
void setMeanMode(MeanMode __value)
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymb...
double getMeanLineWidth() const
get the line width of the symbol for the mean outline, or mean line (in pt)
bool drawBox
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )
Definition jkqtpboxplotstylingmixins.h:435
QBrush getMedianLineBrush() const
gets the brush used to fill the line area of median lines
QVector< qreal > getMeanLineDashPattern() const
gets the dash pattern for a custom dash style of Mean lines
double getWhiskerLineWidth() const
get the width [pt] of whisker lines
QPen getMeanLinePen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
constructs a QPen from the line styling properties to draw the mean line
MeanMode getMeanMode() const
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymb...
void setBoxWidthAbsolute(double __value)
width of box in pt.
Qt::PenStyle getMedianLineStyle() const
get the line style of median lines
void setMedianLineJoinStyle(Qt::PenJoinStyle style)
sets the join style of median lines
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
double boxWidthAbsolute
width of box in pt.
Definition jkqtpboxplotstylingmixins.h:426
QPen getWhiskerCapPen(JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
build a pen to be used for drawing whisker caps
Qt::PenCapStyle getWhiskerCapLineCapStyle() const
gets the cap style of whisker cap lines
double m_meanSymbolLineWidth
width (in pt) of the lines used to plot the symbol for the data points, given in pt
Definition jkqtpboxplotstylingmixins.h:407
QColor getWhiskerCapLineColor() const
get the color of whisker cap lines
double getMeanSize() const
get the size (=diameter in pt) of the symbol for the mean (in pt)
qreal getWhiskerLineDashOffset() const
returns the dash offset for a custom dash style of whisker lines
QPen m_whiskerCapLinePen
line style of the whisker cap lines
Definition jkqtpboxplotstylingmixins.h:415
double m_meanSymbolSize
size (diameter in pt) of the symbol for the data points, given in pt
Definition jkqtpboxplotstylingmixins.h:401
void setMeanLineStyle(Qt::PenStyle __value)
set the line style of Mean lines
Qt::PenStyle getMeanLineStyle() const
get the line style of Mean lines
MeanMode meanMode
specifies how to draw the mean (as a line of as a symbol, specified by the function in JKQTPGraphSymb...
Definition jkqtpboxplotstylingmixins.h:433
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,...
MeanMode
modes of how to draw the mean in a boxplot
Definition jkqtpboxplotstylingmixins.h:202
@ MeanAsSymbol
draw mean as a symbol (specified by the settings in JKQTPGraphSymbolStyleMixin)
Definition jkqtpboxplotstylingmixins.h:203
QVector< qreal > getWhiskerCapLineDashPattern() const
gets the dash pattern for a custom dash style of whisker cap lines
void setRelativeWhiskerWidth(double __value)
width of the whiskers, relative to the box width (default: 0.5)
void setMeanSize(double __value)
set the size (=diameter in pt) of the symbol for the mean (in pt)
QColor getMedianLineColor() const
get the color of median lines
void setWhiskerLineJoinStyle(Qt::PenJoinStyle style)
sets the join style of whisker lines
QPen m_whiskerLinePen
line style of the whisker lines
Definition jkqtpboxplotstylingmixins.h:411
void setMeanLineDashPattern(const QVector< qreal > &pattern)
sets the dash pattern for a custom dash style of Mean lines
void setWhiskerLineStyle(Qt::PenStyle __value)
set the line style of whisker lines
void setWhiskerCapLineDashPattern(const QVector< qreal > &pattern)
sets the dash pattern for a custom dash style of whisker cap lines
void setMedianLineDashPattern(const QVector< qreal > &pattern)
sets the dash pattern for a custom dash style of median lines
QPen m_medianLinePen
line style of the median lines
Definition jkqtpboxplotstylingmixins.h:419
QVector< qreal > getWhiskerLineDashPattern() const
gets the dash pattern for a custom dash style of whisker lines
void setMeanFillColor(const QColor &__value)
set the color of filling of the symbol for the mean
QColor getMeanColor() const
set the color of the symbol for the mean, or mean line
double getBoxWidthAbsolute() const
width of box in pt.
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,...
double whiskerLineWidth
line width (in pt) of the whisker lines
Definition jkqtpboxplotstylingmixins.h:413
Qt::PenJoinStyle getWhiskerCapLineJoinStyle() const
returns the join style of whisker cap lines
void setWhiskerLineBrush(const QBrush &style)
sets the brush used to fill the line area of whisker lines
Qt::PenJoinStyle getWhiskerLineJoinStyle() const
returns the join style of whisker lines
double getMedianLineWidth() const
get the width [pt] of median lines
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
void setWhiskerCapLineBrush(const QBrush &style)
sets the brush used to fill the line area of whisker cap lines
qreal getWhiskerCapLineDashOffset() const
returns the dash offset for a custom dash style of whisker cap lines
QString m_meanSymbolFontName
font to be used for character mean symbols JKQTPCharacterSymbol+QChar('').unicode()
Definition jkqtpboxplotstylingmixins.h:409
void setMedianLineColor(QColor __value)
set the color of median lines
double getRelativeWhiskerWidth() const
width of the whiskers, relative to the box width (default: 0.5)
double getWhiskerCapLineWidth() const
get the width [pt] of whisker cap lines
void setMeanSymbolType(JKQTPGraphSymbols __value)
set the type of the symbol for the mean
void setWhiskerCapLineStyle(Qt::PenStyle __value)
set the line style of whisker cap lines
void setMeanSymbolFontName(const QString &__value)
set the font to be used for mean character symbols JKQTPCharacterSymbol+QChar('')....
void setWhiskerCapLineJoinStyle(Qt::PenJoinStyle style)
sets the join style of whisker cap lines
void setMedianLineWidth(double __value)
set the width [pt] of median lines
QPen m_meanSymbolLinePen
outline color of the symbol or line pen of the mean-line
Definition jkqtpboxplotstylingmixins.h:403
double relativeNotchIndent
single-sided indention of the notch (if any), relative to the box width (default: 0....
Definition jkqtpboxplotstylingmixins.h:430
Qt::PenCapStyle getMedianLineCapStyle() const
gets the cap style of median lines
QColor getMeanFillColor() const
set the color of filling of the symbol for the mean
void setWhiskerCapLineWidth(double __value)
set the width [pt] of whisker cap lines
void initBoxplotStyle(JKQTBasePlotter *parent, int &parentPlotStyle)
Qt::PenJoinStyle getMedianLineJoinStyle() const
returns the join style of median lines
void setMedianLineStyle(Qt::PenStyle __value)
set the line style of median lines
Qt::PenCapStyle getWhiskerLineCapStyle() const
gets the cap style of whisker lines
void setWhiskerLineDashPattern(const QVector< qreal > &pattern)
sets the dash pattern for a custom dash style of whisker lines
void setWhiskerLineWidth(double __value)
set the width [pt] of whisker lines
JKQTPGraphSymbols getMeanSymbolType() const
get the type of the symbol for the mean
JKQTPGraphSymbols m_meanSymbolType
which symbol to use for the datapoints
Definition jkqtpboxplotstylingmixins.h:399
double getRelativeNotchIndent() const
single-sided indention of the notch (if any), relative to the box width (default: 0....
void setMedianLineCapStyle(Qt::PenCapStyle style)
sets the cap style of median lines
void setMeanColor(const QColor &__value)
set the color of the symbol for the mean, or mean line
double relativeWhiskerWidth
width of the whiskers, relative to the box width (default: 0.5)
Definition jkqtpboxplotstylingmixins.h:428
QColor m_meanSymbolFillColor
color of the symbol filling
Definition jkqtpboxplotstylingmixins.h:405
void plotHorizontalKeyMarker(JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, const QRectF &rect)
draw a small, stylized, horizontal symbol into rect that symbolizes a boxplot, e.g....
bool getDrawBox() const
enables/disables drawing of the actual box of the boxplot (false leads to Tufte Style boxplots )
This Mix-In class provides setter/getter methods, storage and other facilities for the graph filling ...
Definition jkqtpgraphsbasestylingmixins.h:529
This Mix-In class provides setter/getter methods, storage and other facilities for the graph line sty...
Definition jkqtpgraphsbasestylingmixins.h:49
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89