33 #include <QPaintEvent> 46 # define FUNCNAME __PRETTY_FUNCTION__ 47 #elif defined(Q_CC_MSVC) 48 # define FUNCNAME __FUNCSIG__ 50 # define FUNCNAME __func__ 122 QString
name()
const {
return mName; }
124 QPen
pen()
const {
return mPen; }
125 QBrush
brush()
const {
return mBrush; }
130 void setName(
const QString &name);
131 void setVisible(
bool visible);
132 void setPen(
const QPen &pen);
133 void setBrush(
const QBrush &brush);
134 void setKeyAxis(
QCPAxis *axis);
135 void setValueAxis(
QCPAxis *axis);
138 void rescaleAxes(
bool onlyEnlarge=
false)
const;
139 void rescaleKeyAxis(
bool onlyEnlarge=
false)
const;
140 void rescaleValueAxis(
bool onlyEnlarge=
false)
const;
141 virtual void clearData() = 0;
142 virtual bool addToLegend()
const;
143 virtual bool removeFromLegend()
const;
160 virtual void draw(QPainter *painter)
const = 0;
161 virtual void drawLegendIcon(QPainter *painter,
const QRect &rect)
const = 0;
162 virtual QCPRange getKeyRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const = 0;
163 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const = 0;
164 void coordsToPixels(
double key,
double value,
double &x,
double &y)
const;
165 const QPointF coordsToPixels(
double key,
double value)
const;
240 void setData(
QCPDataMap *data,
bool copy=
false);
241 void setData(
const QVector<double> &
key,
const QVector<double> &
value);
242 void setDataKeyError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &keyError);
243 void setDataKeyError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &
keyErrorMinus,
const QVector<double> &
keyErrorPlus);
244 void setDataValueError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &valueError);
245 void setDataValueError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &
valueErrorMinus,
const QVector<double> &
valueErrorPlus);
246 void setDataBothError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &keyError,
const QVector<double> &valueError);
247 void setDataBothError(
const QVector<double> &key,
const QVector<double> &value,
const QVector<double> &keyErrorMinus,
const QVector<double> &keyErrorPlus,
const QVector<double> &valueErrorMinus,
const QVector<double> &valueErrorPlus);
248 void setLineStyle(
int ls);
249 void setScatterStyle(
int ss);
250 void setScatterSize(
double size);
251 void setScatterPixmap(
const QPixmap &pixmap);
253 void setErrorPen(
const QPen &pen);
254 void setErrorBarSize(
double size);
255 void setErrorBarSkipSymbol(
bool enabled);
256 void setChannelFillGraph(
QCPGraph *targetGraph);
260 void addData(
const QCPData &data);
261 void addData(
double key,
double value);
262 void addData(
const QVector<double> &keys,
const QVector<double> &values);
263 void removeDataBefore(
double key);
264 void removeDataAfter(
double key);
265 void removeData(
double fromKey,
double toKey);
266 void removeData(
double key);
267 virtual void clearData();
273 virtual void rescaleAxes(
bool onlyEnlarge,
bool includeErrorBars)
const;
274 virtual void rescaleKeyAxis(
bool onlyEnlarge,
bool includeErrorBars)
const;
275 virtual void rescaleValueAxis(
bool onlyEnlarge,
bool includeErrorBars)
const;
289 virtual void draw(QPainter *painter)
const;
290 virtual void drawLegendIcon(QPainter *painter,
const QRect &rect)
const;
293 void getPlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
295 void getScatterPlotData(QVector<QCPData> *pointData)
const;
296 void getLinePlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
297 void getStepLeftPlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
298 void getStepRightPlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
299 void getStepCenterPlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
300 void getImpulsePlotData(QVector<QPointF> *lineData, QVector<QCPData> *pointData)
const;
303 void drawFill(QPainter *painter, QVector<QPointF> *lineData)
const;
304 void drawScatterPlot(QPainter *painter, QVector<QCPData> *pointData)
const;
305 void drawLinePlot(QPainter *painter, QVector<QPointF> *lineData)
const;
306 void drawImpulsePlot(QPainter *painter, QVector<QPointF> *lineData)
const;
307 void drawScatter(QPainter *painter,
double x,
double y,
ScatterStyle style)
const;
308 void drawError(QPainter *painter,
double x,
double y,
const QCPData &data)
const;
311 void getVisibleDataBounds(QCPDataMap::const_iterator &lower, QCPDataMap::const_iterator &upper,
int &count)
const;
312 void addFillBasePoints(QVector<QPointF> *lineData)
const;
313 void removeFillBasePoints(QVector<QPointF> *lineData)
const;
314 QPointF lowerFillBasePoint(
double lowerKey)
const;
315 QPointF upperFillBasePoint(
double upperKey)
const;
316 const QPolygonF getChannelFillPolygon(
const QVector<QPointF> *lineData)
const;
317 int findIndexBelowX(
const QVector<QPointF> *data,
double x)
const;
318 int findIndexAboveX(
const QVector<QPointF> *data,
double x)
const;
319 int findIndexBelowY(
const QVector<QPointF> *data,
double y)
const;
320 int findIndexAboveY(
const QVector<QPointF> *data,
double y)
const;
322 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const;
323 virtual QCPRange getKeyRange(
bool &validRange,
SignDomain inSignDomain,
bool includeErrors)
const;
324 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain,
bool includeErrors)
const;
342 void setData(
const QVector<double> &t,
const QVector<double> &
key,
const QVector<double> &
value);
343 void setData(
const QVector<double> &key,
const QVector<double> &value);
348 void addData(
double t,
double key,
double value);
349 void addData(
double key,
double value);
350 void addData(
const QVector<double> &ts,
const QVector<double> &keys,
const QVector<double> &values);
351 void removeDataBefore(
double t);
352 void removeDataAfter(
double t);
353 void removeData(
double fromt,
double tot);
354 void removeData(
double t);
355 virtual void clearData();
360 virtual void draw(QPainter *painter)
const;
361 virtual void drawLegendIcon(QPainter *painter,
const QRect &rect)
const;
363 void getCurveData(QVector<QPointF> *lineData)
const;
364 QPointF outsideCoordsToPixels(
double key,
double value,
int region)
const;
366 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const;
381 double width()
const {
return mWidth; }
387 void setWidth(
double width);
389 void setData(
const QVector<double> &
key,
const QVector<double> &
value);
396 void addData(
double key,
double value);
397 void addData(
const QVector<double> &keys,
const QVector<double> &values);
398 void removeDataBefore(
double key);
399 void removeDataAfter(
double key);
400 void removeData(
double fromKey,
double toKey);
401 void removeData(
double key);
402 virtual void clearData();
409 virtual void draw(QPainter *painter)
const;
410 virtual void drawLegendIcon(QPainter *painter,
const QRect &rect)
const;
412 QPolygonF getBarPolygon(
double key,
double value)
const;
413 double getBaseValue(
double key,
bool positive)
const;
416 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const;
431 double key()
const {
return mKey; }
434 double median()
const {
return mMedian; }
437 QVector<double>
outliers()
const {
return mOutliers; }
438 double width()
const {
return mWidth; }
448 void setKey(
double key);
449 void setMinimum(
double value);
450 void setLowerQuartile(
double value);
451 void setMedian(
double value);
452 void setUpperQuartile(
double value);
453 void setMaximum(
double value);
454 void setOutliers(
const QVector<double> &values);
455 void setData(
double key,
double minimum,
double lowerQuartile,
double median,
double upperQuartile,
double maximum);
456 void setWidth(
double width);
457 void setWhiskerWidth(
double width);
458 void setWhiskerPen(
const QPen &pen);
459 void setWhiskerBarPen(
const QPen &pen);
460 void setMedianPen(
const QPen &pen);
461 void setOutlierSize(
double pixels);
462 void setOutlierPen(
const QPen &pen);
463 void setOutlierBrush(
const QBrush &brush);
466 virtual void clearData();
477 virtual void draw(QPainter *painter)
const;
478 virtual void drawLegendIcon(QPainter *painter,
const QRect &rect)
const;
480 virtual void drawQuartileBox(QPainter *painter)
const;
481 virtual void drawMedian(QPainter *painter)
const;
482 virtual void drawWhiskers(QPainter *painter)
const;
483 virtual void drawOutliers(QPainter *painter)
const;
485 virtual QCPRange getValueRange(
bool &validRange,
SignDomain inSignDomain=SDBoth)
const;
496 QCPRange(
double lower,
double upper);
500 double center()
const;
502 QCPRange sanitizedForLogScale()
const;
503 QCPRange sanitizedForLinScale()
const;
505 static bool validRange(
double lower,
double upper);
506 static bool validRange(
const QCPRange &range);
519 QFont
font()
const {
return mFont; }
521 void setFont(
const QFont &font);
527 virtual void draw(QPainter *painter,
const QRect &rect)
const = 0;
528 virtual QSize size(
const QSize &targetSize)
const = 0;
540 void setTextWrap(
bool wrap);
550 virtual void draw(QPainter *painter,
const QRect &rect)
const;
551 virtual QSize size(
const QSize &targetSize)
const;
579 QBrush
brush()
const {
return mBrush; }
580 QFont
font()
const {
return mFont; }
584 QSize
size()
const {
return mSize; }
599 int getItemIndex(
const QPoint *point);
602 void setBorderPen(
const QPen &pen);
603 void setBrush(
const QBrush &brush);
604 void setFont(
const QFont &font);
606 void setPosition(
const QPoint &pixelPosition);
607 void setAutoSize(
bool on);
608 void setSize(
const QSize &size);
609 void setSize(
int width,
int height);
610 void setMinimumSize(
const QSize &size);
611 void setMinimumSize(
int width,
int height);
612 void setVisible(
bool on);
613 void setPaddingLeft(
int padding);
614 void setPaddingRight(
int padding);
615 void setPaddingTop(
int padding);
616 void setPaddingBottom(
int padding);
617 void setPadding(
int left,
int right,
int top,
int bottom);
618 void setMarginLeft(
int margin);
619 void setMarginRight(
int margin);
620 void setMarginTop(
int margin);
621 void setMarginBottom(
int margin);
622 void setMargin(
int left,
int right,
int top,
int bottom);
623 void setItemSpacing(
int spacing);
624 void setIconSize(
const QSize &size);
625 void setIconSize(
int width,
int height);
626 void setIconTextPadding(
int padding);
627 void setIconBorderPen(
const QPen &pen);
632 int itemCount()
const;
636 bool removeItem(
int index);
648 QSize
mSize, mMinimumSize, mIconSize;
660 virtual void draw(QPainter *painter);
661 virtual void calculateAutoSize();
662 virtual void calculateAutoPosition();
671 Q_PROPERTY(
AxisType axisType READ axisType WRITE setAxisType)
672 Q_PROPERTY(
ScaleType scaleType READ scaleType WRITE setScaleType)
673 Q_PROPERTY(
double scaleLogBase READ scaleLogBase WRITE setScaleLogBase)
674 Q_PROPERTY(QRect axisRect READ axisRect WRITE setAxisRect)
675 Q_PROPERTY(
QCPRange range READ range WRITE setRange)
676 Q_PROPERTY(
bool visible READ visible WRITE setVisible)
677 Q_PROPERTY(
bool grid READ grid WRITE setGrid)
678 Q_PROPERTY(
bool subGrid READ subGrid WRITE setSubGrid)
679 Q_PROPERTY(
bool autoTicks READ autoTicks WRITE setAutoTicks)
680 Q_PROPERTY(
int autoTickCount READ autoTickCount WRITE setAutoTickCount)
681 Q_PROPERTY(
bool autoTickLabels READ autoTickLabels WRITE setAutoTickLabels)
682 Q_PROPERTY(
bool autoTickStep READ autoTickStep WRITE setAutoTickStep)
683 Q_PROPERTY(
bool autoSubTicks READ autoSubTicks WRITE setAutoSubTicks)
684 Q_PROPERTY(
bool ticks READ ticks WRITE setTicks)
685 Q_PROPERTY(
bool tickLabels READ tickLabels WRITE setTickLabels)
686 Q_PROPERTY(
int tickLabelPadding READ tickLabelPadding WRITE setTickLabelPadding)
687 Q_PROPERTY(
LabelType tickLabelType READ tickLabelType WRITE setTickLabelType)
688 Q_PROPERTY(QFont tickLabelFont READ tickLabelFont WRITE setTickLabelFont)
689 Q_PROPERTY(
double tickLabelRotation READ tickLabelRotation WRITE setTickLabelRotation)
690 Q_PROPERTY(QString dateTimeFormat READ dateTimeFormat WRITE setDateTimeFormat)
691 Q_PROPERTY(QString numberFormat READ numberFormat WRITE setNumberFormat)
692 Q_PROPERTY(
double tickStep READ tickStep WRITE setTickStep)
693 Q_PROPERTY(QVector<double>* tickVector READ tickVector WRITE setTickVector)
694 Q_PROPERTY(QVector<QString>* tickVectorLabels READ tickVectorLabels WRITE setTickVectorLabels)
695 Q_PROPERTY(
int subTickCount READ subTickCount WRITE setSubTickCount)
696 Q_PROPERTY(QPen basePen READ basePen WRITE setBasePen)
697 Q_PROPERTY(QPen gridPen READ gridPen WRITE setGridPen)
698 Q_PROPERTY(QPen subGridPen READ subGridPen WRITE setSubGridPen)
699 Q_PROPERTY(QPen tickPen READ tickPen WRITE setTickPen)
700 Q_PROPERTY(QPen subTickPen READ subTickPen WRITE setSubTickPen)
701 Q_PROPERTY(QFont labelFont READ labelFont WRITE setLabelFont)
702 Q_PROPERTY(QString label READ label WRITE setLabel)
703 Q_PROPERTY(
int labelPadding READ labelPadding WRITE setLabelPadding)
749 bool grid()
const {
return mGrid; }
756 bool ticks()
const {
return mTicks; }
763 QString numberFormat()
const;
780 QString
label()
const {
return mLabel; }
786 void setScaleLogBase(
double base);
787 void setRange(
double lower,
double upper);
788 void setRange(
double position,
double size, Qt::AlignmentFlag alignment);
789 void setRangeLower(
double lower);
790 void setRangeUpper(
double upper);
791 void setRangeReversed(
bool reversed);
792 void setVisible(
bool on);
793 void setGrid(
bool show);
794 void setSubGrid(
bool show);
795 void setAutoTicks(
bool on);
796 void setAutoTickCount(
int approximateCount);
797 void setAutoTickLabels(
bool on);
798 void setAutoTickStep(
bool on);
799 void setAutoSubTicks(
bool on);
800 void setTicks(
bool show);
801 void setTickLabels(
bool show);
802 void setTickLabelPadding(
int padding);
804 void setTickLabelFont(
const QFont &font);
805 void setTickLabelRotation(
double degrees);
806 void setDateTimeFormat(
const QString &format);
807 void setNumberFormat(
const QString &formatCode);
808 void setNumberPrecision(
int precision);
809 void setTickStep(
double step);
810 void setTickVector(QVector<double> *vec,
bool copy=
false);
811 void setTickVectorLabels(QVector<QString> *vec,
bool copy=
false);
812 void setTickLength(
int inside,
int outside=0);
813 void setSubTickCount(
int count);
814 void setSubTickLength(
int inside,
int outside=0);
815 void setBasePen(
const QPen &pen);
816 void setGridPen(
const QPen &pen);
817 void setSubGridPen(
const QPen &pen);
818 void setZeroLinePen(
const QPen &pen);
819 void setTickPen(
const QPen &pen);
820 void setSubTickPen(
const QPen &pen);
821 void setLabelFont(
const QFont &font);
822 void setLabel(
const QString &str);
823 void setLabelPadding(
int padding);
824 void setPadding(
int padding);
828 void moveRange(
double diff);
829 void scaleRange(
double factor,
double center);
830 void setScaleRatio(
const QCPAxis *otherAxis,
double ratio=1.0);
831 double pixelToCoord(
double value)
const;
832 double coordToPixel(
double value)
const;
835 void setRange(
const QCPRange &range);
845 QPen mBasePen, mGridPen, mSubGridPen,
mZeroLinePen, mTickPen, mSubTickPen;
852 int mSubTickCount, mTickLengthIn,
mTickLengthOut, mSubTickLengthIn, mSubTickLengthOut;
856 bool mVisible, mGrid, mSubGrid, mTicks, mTickLabels, mAutoTicks, mAutoTickLabels, mAutoTickStep, mAutoSubTicks;
870 void setAxisRect(
const QRect &rect);
873 virtual void generateTickVectors();
874 virtual void generateAutoTicks();
875 virtual int calculateAutoSubTickCount(
double tickStep)
const;
876 virtual int calculateMargin()
const;
877 virtual void drawGrid(QPainter *painter);
878 virtual void drawSubGrid(QPainter *painter);
879 virtual void drawAxis(QPainter *painter);
880 virtual void drawTickLabel(QPainter *painter,
double position,
int distanceToAxis,
const QString &text, QSize *tickLabelsSize);
881 virtual void getMaxTickLabelSize(
const QFont &font,
const QString &text, QSize *tickLabelsSize)
const;
884 void visibleTickBounds(
int &lowIndex,
int &highIndex)
const;
885 double baseLog(
double value)
const;
886 double basePow(
double value)
const;
890 void rangeChanged(
const QCPRange &newRange);
899 Q_PROPERTY(QString title READ title WRITE setTitle)
900 Q_PROPERTY(QRect axisRect READ axisRect WRITE setAxisRect)
901 Q_PROPERTY(
int marginLeft READ marginLeft WRITE setMarginLeft)
902 Q_PROPERTY(
int marginRight READ marginRight WRITE setMarginRight)
903 Q_PROPERTY(
int marginTop READ marginTop WRITE setMarginTop)
904 Q_PROPERTY(
int marginBottom READ marginBottom WRITE setMarginBottom)
905 Q_PROPERTY(
int autoMargin READ autoMargin WRITE setAutoMargin)
906 Q_PROPERTY(QColor color READ color WRITE setColor)
907 Q_PROPERTY(Qt::Orientations rangeDrag READ rangeDrag WRITE setRangeDrag)
908 Q_PROPERTY(Qt::Orientations rangeZoom READ rangeZoom WRITE setRangeZoom)
918 enum AntialiasedElement {AEAxes = 0x001,
927 Q_ENUMS(AntialiasedElement)
928 Q_DECLARE_FLAGS(AntialiasedElements, AntialiasedElement)
935 QString
title()
const {
return mTitle; }
943 QColor
color()
const {
return mColor; }
944 Qt::Orientations
rangeDrag()
const {
return mRangeDrag; }
945 Qt::Orientations
rangeZoom()
const {
return mRangeZoom; }
946 QCPAxis *rangeDragAxis(Qt::Orientation orientation);
947 QCPAxis *rangeZoomAxis(Qt::Orientation orientation);
948 double rangeZoomFactor(Qt::Orientation orientation);
956 void setTitle(
const QString &title);
957 void setTitleFont(
const QFont &font);
958 void setAxisRect(
const QRect &arect);
959 void setMarginLeft(
int margin);
960 void setMarginRight(
int margin);
961 void setMarginTop(
int margin);
962 void setMarginBottom(
int margin);
963 void setMargin(
int left,
int right,
int top,
int bottom);
964 void setAutoMargin(
bool enabled);
965 void setColor(
const QColor &color);
966 void setRangeDrag(Qt::Orientations orientations);
967 void setRangeZoom(Qt::Orientations orientations);
970 void setRangeZoomFactor(
double horizontalFactor,
double verticalFactor);
971 void setRangeZoomFactor(
double factor);
972 void setAntialiasedElements(
const AntialiasedElements &antialiasedElements);
973 void setAntialiasedElement(AntialiasedElement antialiasedElement,
bool enabled);
974 void setAutoAddPlottableToLegend(
bool on);
975 void setAxisBackground(
const QPixmap &pm);
976 void setAxisBackground(
const QPixmap &pm,
bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding);
977 void setAxisBackgroundScaled(
bool scaled);
978 void setAxisBackgroundScaledMode(Qt::AspectRatioMode mode);
986 bool removePlottable(
int index);
987 int clearPlottables();
988 int plottableCount()
const;
994 bool removeGraph(
int index);
996 int graphCount()
const;
998 void setupFullAxesBox();
1000 void savePdf(
const QString &fileName,
bool noCosmeticPen=
false,
int width=0,
int height=0);
1002 void savePng(
const QString &fileName,
int width=0,
int height=0);
1003 void savePngScaled(
const QString &fileName,
double scale,
int width=0,
int height=0);
1032 virtual void paintEvent(QPaintEvent *event);
1033 virtual void resizeEvent(QResizeEvent *event);
1034 virtual void mouseDoubleClickEvent(QMouseEvent *event);
1035 virtual void mousePressEvent(QMouseEvent *event);
1036 virtual void mouseMoveEvent(QMouseEvent *event);
1037 virtual void mouseReleaseEvent(QMouseEvent *event);
1038 virtual void wheelEvent(QWheelEvent *event);
1041 virtual void draw(QPainter *painter);
1042 virtual void drawAxisBackground(QPainter *painter);
1045 void updateAxisRect();
1048 void mouseDoubleClick(QMouseEvent *event);
1049 void mousePress(QMouseEvent *event);
1050 void mousePressOnLegendItem(QMouseEvent *event, QVariant itemIdx);
1051 void mousePressOnPlotArea(QMouseEvent *event);
1052 void mouseMove(QMouseEvent *event);
1053 void mouseRelease(QMouseEvent *event);
1054 void mouseWheel(QWheelEvent *event);
1061 Q_DECLARE_OPERATORS_FOR_FLAGS(QCustomPlot::AntialiasedElements)
1063 #endif // QCUSTOMPLOT_H a square which is not filled, with a plus inside
Error bars for the key dimension of the data point are shown.
QList< QCPGraph * > mGraphs
Position is not changed automatically. Set manually via setPosition.
bool autoSubTicks() const
Legend is positioned in the bottom right corner of the axis rect with distance to the border correspo...
static const double maxRange
Axis is vertical and on the right side of the axis rect of the parent QCustomPlot.
QVector< QString > * tickVectorLabels() const
line is drawn as steps where the step height is the value of the right data point ...
QVector< double > * mSubTickVector
Legend is horizontally centered at the top of the axis rect with distance to the border corresponding...
QMap< double, QCPData > QCPDataMap
line is drawn as steps where the step is in between two data points
A class holding the data of one single data point for QCPCurve.
A legend item representing a plottable with an icon and the plottable name.
QCPGraph * mChannelFillGraph
a square which is not filled, with a cross inside
a circle which is filled with the color of the graph's pen (not the brush!)
const QPixmap scatterPixmap() const
The abstract base class for all items in a QCPLegend.
double upperQuartile() const
bool mNumberMultiplyCross
double scaleLogBase() const
QFlags< AntialiasedElement > mAntialiasedElements
QBrush outlierBrush() const
bool mAxisBackgroundScaled
const QCPDataMap * data() const
Qt::Orientations rangeZoom() const
A plottable representing a bar chart in a plot.
QCustomPlot * mParentPlot
void rescaleAxes(bool onlyEnlarge=false) const
QCustomPlot * parentPlot() const
QPen iconBorderPen() const
double mTickLabelRotation
Legend is positioned in the top left corner of the axis rect with distance to the border correspondin...
Qt::Orientations rangeDrag() const
PositionStyle positionStyle() const
bool errorBarSkipSymbol() const
void rescaleKeyAxis(bool onlyEnlarge=false) const
The abstract base class for all data representing objects in a plot.
A plottable representing a single statistical box in a plot.
QString dateTimeFormat() const
Both sign domains, including zero, i.e. all (rational) numbers.
an equilateral triangle which is not filled, standing on corner
QCustomPlot * parentPlot() const
QVector< double > * tickVector() const
double scatterSize() const
double whiskerWidth() const
QMutableMapIterator< double, QCPBarData > QCPBarDataMutableMapIterator
bool autoAddPlottableToLegend() const
PositionStyle mPositionStyle
A plottable representing a graph in a plot.
AxisType axisType() const
int paddingBottom() const
double errorBarSize() const
QCPLegend * mParentLegend
QCPAxis * keyAxis() const
The central class which is also the QWidget which displays the plot and interacts with the user...
Qt::AspectRatioMode mAxisBackgroundScaledMode
int subTickLengthOut() const
Manages a single axis inside a QCustomPlot.
Legend is positioned in the top right corner of the axis rect with distance to the border correspondi...
Manages a legend inside a QCustomPlot.
LabelType tickLabelType() const
QCPRange mDragStartVertRange
a circle which is not filled, with one vertical and two downward diagonal lines
ErrorType errorType() const
virtual ~QCPAbstractLegendItem()
double outlierSize() const
double lowerQuartile() const
bool rangeReversed() const
a circle which is not filled
ScatterStyle mScatterStyle
QVector< double > outliers() const
Legend is horizontally centered at the bottom of the axis rect with distance to the border correspond...
an equilateral triangle which is not filled, standing on baseline
bool axisBackgroundScaled() const
QMap< double, QCPBarData > QCPBarDataMap
a square which is not filled
A class holding the data of one single data point for QCPGraph.
QList< QCPAbstractPlottable * > mPlottables
QCPBars * barAbove() const
QMutableMapIterator< double, QCPData > QCPDataMutableMapIterator
line is drawn as steps where the step height is the value of the left data point
Legend is vertically centered at the right of the axis rect with distance to the border corresponding...
Qt::Orientation orientation() const
QPixmap mScaledAxisBackground
Qt::Orientation mOrientation
static const double minRange
QVector< double > mOutliers
const AntialiasedElements antialiasedElements() const
const QCPCurveDataMap * data() const
A plottable representing a parametric curve in a plot.
bool autoTickLabels() const
int tickLabelPadding() const
QMapIterator< double, QCPBarData > QCPBarDataMapIterator
Qt::Orientations mRangeZoom
int iconTextPadding() const
virtual ~QCPAbstractPlottable()
Axis is horizontal and on the top side of the axis rect of the parent QCustomPlot.
ScaleType scaleType() const
QSize minimumSize() const
QVector< double > * mTickVector
double mScaleLogBaseLogInv
Error bars for the value dimension of the data point are shown.
QMapIterator< double, QCPData > QCPDataMapIterator
QCustomPlot * mParentPlot
Tick coordinate is regarded as normal number and will be displayed as such. (see setNumberFormat) ...
QCPAxis * valueAxis() const
a circle which is not filled, with a plus inside
void rescaleValueAxis(bool onlyEnlarge=false) const
double tickLabelRotation() const
double mRangeZoomFactorVert
QCPBars * barBelow() const
LineStyle lineStyle() const
const QCPAbstractPlottable * plottable() const
int subTickLengthIn() const
virtual ~QCPPlottableLegendItem()
int tickLengthOut() const
Qt::AspectRatioMode axisBackgroundScaledMode() const
Represents the range an axis is encompassing.
const QCPAbstractPlottable * mPlottable
ScatterStyle scatterStyle() const
no scatter symbols are drawn (e.g. data only represented with lines, see setLineStyle) ...
QMutableMapIterator< double, QCPCurveData > QCPCurveDataMutableMapIterator
QCPAxis * mRangeZoomVertAxis
a star with eight arms, i.e. a combination of cross and plus
bool autoTickStep() const
const QCPRange range() const
QList< QCPAbstractLegendItem * > mItems
int autoTickCount() const
QCustomPlot * mParentPlot
QMap< double, QCPCurveData > QCPCurveDataMap
QPixmap axisBackground() const
QVector< QString > * mTickVectorLabels
int numberPrecision() const
const QCPBarDataMap * data() const
QCPGraph * channelFillGraph() const
a single pixel, setScatterSize has no influence on its size.
a circle which is not filled, with a cross inside
QPen whiskerBarPen() const
Legend is positioned in the bottom left corner of the axis rect with distance to the border correspon...
QFont tickLabelFont() const
QMapIterator< double, QCPCurveData > QCPCurveDataMapIterator
A class holding the data of one single data point (one bar) for QCPBars.