20#ifndef jkqtpgraphsviolinplot_H
21#define jkqtpgraphsviolinplot_H
27#include "jkqtplotter/jkqtptools.h"
28#include "jkqtplotter/jkqtplotter_imexport.h"
29#include "jkqtplotter/jkqtpimagetools.h"
30#include "jkqtplotter/jkqtpgraphsbase.h"
31#include "jkqtplotter/graphs/jkqtpviolinplotstylingmixins.h"
32#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
182 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
184 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
231 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
233 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
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 Violinplots.
Definition jkqtpviolinplotstylingmixins.h:43
this virtual base class of every element, which is part of a JKQTPlotter plot and may appear in its k...
Definition jkqtpgraphsbase.h:62
This implements a single vertical Violin Plot as a "geometric element".
Definition jkqtpviolinplot.h:51
void setDrawMedian(bool __value)
indicates whether to draw the median
double getMedian() const
the median value to be used for the boxplot
int getViolinPositionColumn() const
column with data for the violin outline: category values (along min-max-axis)
bool drawMedian
indicates whether to draw the median
Definition jkqtpviolinplot.h:125
double max
the maximum value to be used for the boxplot
Definition jkqtpviolinplot.h:131
double median
the median value to be used for the boxplot
Definition jkqtpviolinplot.h:119
void setDrawMinMax(bool __value)
indicates whether to draw the percentiles
double getMax() const
the maximum value to be used for the boxplot
int violinFrequencyColumn
column with data for the violin outline: frequency values (perpendicular to min-max-axis)
Definition jkqtpviolinplot.h:135
int getViolinFrequencyColumn() const
column with data for the violin outline: frequency values (perpendicular to min-max-axis)
double min
the minimum value to be used for the boxplot
Definition jkqtpviolinplot.h:129
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
void setViolinFrequencyColumn(size_t __value)
column with data for the violin outline: frequency values (perpendicular to min-max-axis)
void setMax(double __value)
the maximum value to be used for the boxplot
bool getDrawMean() const
indicates whether to draw the mean
void setPos(double __value)
the position of the boxplot on the "other" axis
bool drawMean
indicates whether to draw the mean
Definition jkqtpviolinplot.h:123
double pos
the position of the boxplot on the "other" axis
Definition jkqtpviolinplot.h:117
bool getDrawMedian() const
indicates whether to draw the median
bool drawMinMax
indicates whether to draw the percentiles
Definition jkqtpviolinplot.h:127
double mean
the mean value to be used for the boxplot
Definition jkqtpviolinplot.h:121
void setViolinPositionColumn(int __value)
column with data for the violin outline: category values (along min-max-axis)
double getMean() const
the mean value to be used for the boxplot
int violinPositionColumn
column with data for the violin outline: category values (along min-max-axis)
Definition jkqtpviolinplot.h:133
bool getDrawMinMax() const
indicates whether to draw the percentiles
void setMin(double __value)
the minimum value to be used for the boxplot
virtual void setColor(QColor c)
set the color of the graph (colors all elements, based on the given color c )
double getMin() const
the minimum value to be used for the boxplot
void setDrawMean(bool __value)
indicates whether to draw the mean
void setMedian(double __value)
the median value to be used for the boxplot
void setMean(double __value)
the mean value to be used for the boxplot
JKQTPViolinplotElementBase(JKQTBasePlotter *parent=nullptr)
class constructor
void setViolinFrequencyColumn(int __value)
column with data for the violin outline: frequency values (perpendicular to min-max-axis)
double getPos() const
the position of the boxplot on the "other" axis
void setViolinPositionColumn(size_t __value)
column with data for the violin outline: category values (along min-max-axis)
This implements a single horizontal Violin Plot as a "geometric element".
Definition jkqtpviolinplot.h:216
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPViolinplotHorizontalElement(JKQTBasePlotter *parent=nullptr)
class constructor
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
JKQTPViolinplotHorizontalElement(JKQTPlotter *parent)
class constructor
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
This implements a single vertical Violin Plot as a "geometric element".
Definition jkqtpviolinplot.h:166
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
JKQTPViolinplotVerticalElement(JKQTPlotter *parent)
class constructor
JKQTPViolinplotVerticalElement(JKQTBasePlotter *parent=nullptr)
class constructor
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89