ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
QCPGraph Class Reference

A plottable representing a graph in a plot. More...

#include <qcustomplot.h>

Inheritance diagram for QCPGraph:
Collaboration diagram for QCPGraph:

Public Types

enum  LineStyle {
  lsNone , lsLine , lsStepLeft , lsStepRight ,
  lsStepCenter , lsImpulse , lsNone , lsLine ,
  lsStepLeft , lsStepRight , lsStepCenter , lsImpulse
}
 
enum  LineStyle {
  lsNone , lsLine , lsStepLeft , lsStepRight ,
  lsStepCenter , lsImpulse , lsNone , lsLine ,
  lsStepLeft , lsStepRight , lsStepCenter , lsImpulse
}
 
enum  ErrorType { etNone , etKey , etValue , etBoth }
 

Public Member Functions

 QCPGraph (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPGraph ()
 
QSharedPointer< QCPGraphDataContainerdata () const
 
LineStyle lineStyle () const
 
QCPScatterStyle scatterStyle () const
 
int scatterSkip () const
 
QCPGraphchannelFillGraph () const
 
bool adaptiveSampling () const
 
void setData (QSharedPointer< QCPGraphDataContainer > data)
 
void setData (const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void setLineStyle (LineStyle ls)
 
void setScatterStyle (const QCPScatterStyle &style)
 
void setScatterSkip (int skip)
 
void setChannelFillGraph (QCPGraph *targetGraph)
 
void setAdaptiveSampling (bool enabled)
 
void addData (const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void addData (double key, double value)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
virtual QCPRange getKeyRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth, const QCPRange &inKeyRange=QCPRange()) const
 
 QCPGraph (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPGraph ()
 
QCPDataMapdata () const
 
LineStyle lineStyle () const
 
QCPScatterStyle scatterStyle () const
 
ErrorType errorType () const
 
QPen errorPen () const
 
double errorBarSize () const
 
bool errorBarSkipSymbol () const
 
QCPGraphchannelFillGraph () const
 
bool adaptiveSampling () const
 
void setData (QCPDataMap *data, bool copy=false)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void setDataKeyError (const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyError)
 
void setDataKeyError (const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyErrorMinus, const QVector< double > &keyErrorPlus)
 
void setDataValueError (const QVector< double > &key, const QVector< double > &value, const QVector< double > &valueError)
 
void setDataValueError (const QVector< double > &key, const QVector< double > &value, const QVector< double > &valueErrorMinus, const QVector< double > &valueErrorPlus)
 
void setDataBothError (const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyError, const QVector< double > &valueError)
 
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)
 
void setLineStyle (LineStyle ls)
 
void setScatterStyle (const QCPScatterStyle &style)
 
void setErrorType (ErrorType errorType)
 
void setErrorPen (const QPen &pen)
 
void setErrorBarSize (double size)
 
void setErrorBarSkipSymbol (bool enabled)
 
void setChannelFillGraph (QCPGraph *targetGraph)
 
void setAdaptiveSampling (bool enabled)
 
void addData (const QCPDataMap &dataMap)
 
void addData (const QCPData &data)
 
void addData (double key, double value)
 
void addData (const QVector< double > &keys, const QVector< double > &values)
 
void removeDataBefore (double key)
 
void removeDataAfter (double key)
 
void removeData (double fromKey, double toKey)
 
void removeData (double key)
 
virtual void clearData ()
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
void rescaleAxes (bool onlyEnlarge, bool includeErrorBars) const
 
void rescaleKeyAxis (bool onlyEnlarge, bool includeErrorBars) const
 
void rescaleValueAxis (bool onlyEnlarge, bool includeErrorBars) const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false, bool inKeyRange=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) const
 
- Public Member Functions inherited from QCPAbstractPlottable1D< QCPGraphData >
 QCPAbstractPlottable1D (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable1D ()
 
virtual int dataCount () const
 
virtual double dataMainKey (int index) const
 
virtual double dataSortKey (int index) const
 
virtual double dataMainValue (int index) const
 
virtual QCPRange dataValueRange (int index) const
 
virtual QPointF dataPixelPosition (int index) const
 
virtual bool sortKeyIsMainKey () const
 
virtual QCPDataSelection selectTestRect (const QRectF &rect, bool onlySelectable) const
 
virtual int findBegin (double sortKey, bool expandedRange=true) const
 
virtual int findEnd (double sortKey, bool expandedRange=true) const
 
virtual QCPPlottableInterface1Dinterface1D ()
 
- Public Member Functions inherited from QCPAbstractPlottable
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable ()
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
QPen pen () const
 
QBrush brush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
QCP::SelectionType selectable () const
 
bool selected () const
 
QCPDataSelection selection () const
 
QCPSelectionDecoratorselectionDecorator () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (QCP::SelectionType selectable)
 
Q_SLOT void setSelection (QCPDataSelection selection)
 
void setSelectionDecorator (QCPSelectionDecorator *decorator)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false, bool inKeyRange=false) const
 
bool addToLegend (QCPLegend *legend)
 
bool addToLegend ()
 
bool removeFromLegend (QCPLegend *legend) const
 
bool removeFromLegend () const
 
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
bool antialiasedErrorBars () const
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
bool selectable () const
 
bool selected () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setAntialiasedErrorBars (bool enabled)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual bool addToLegend ()
 
virtual bool removeFromLegend () const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) const
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
- Public Member Functions inherited from QCPPlottableInterface1D
virtual ~QCPPlottableInterface1D ()
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual void drawFill (QCPPainter *painter, QVector< QPointF > *lines) const
 
virtual void drawScatterPlot (QCPPainter *painter, const QVector< QPointF > &scatters, const QCPScatterStyle &style) const
 
virtual void drawLinePlot (QCPPainter *painter, const QVector< QPointF > &lines) const
 
virtual void drawImpulsePlot (QCPPainter *painter, const QVector< QPointF > &lines) const
 
virtual void getOptimizedLineData (QVector< QCPGraphData > *lineData, const QCPGraphDataContainer::const_iterator &begin, const QCPGraphDataContainer::const_iterator &end) const
 
virtual void getOptimizedScatterData (QVector< QCPGraphData > *scatterData, QCPGraphDataContainer::const_iterator begin, QCPGraphDataContainer::const_iterator end) const
 
void getVisibleDataBounds (QCPGraphDataContainer::const_iterator &begin, QCPGraphDataContainer::const_iterator &end, const QCPDataRange &rangeRestriction) const
 
void getLines (QVector< QPointF > *lines, const QCPDataRange &dataRange) const
 
void getScatters (QVector< QPointF > *scatters, const QCPDataRange &dataRange) const
 
QVector< QPointF > dataToLines (const QVector< QCPGraphData > &data) const
 
QVector< QPointF > dataToStepLeftLines (const QVector< QCPGraphData > &data) const
 
QVector< QPointF > dataToStepRightLines (const QVector< QCPGraphData > &data) const
 
QVector< QPointF > dataToStepCenterLines (const QVector< QCPGraphData > &data) const
 
QVector< QPointF > dataToImpulseLines (const QVector< QCPGraphData > &data) const
 
QVector< QCPDataRangegetNonNanSegments (const QVector< QPointF > *lineData, Qt::Orientation keyOrientation) const
 
QVector< QPair< QCPDataRange, QCPDataRange > > getOverlappingSegments (QVector< QCPDataRange > thisSegments, const QVector< QPointF > *thisData, QVector< QCPDataRange > otherSegments, const QVector< QPointF > *otherData) const
 
bool segmentsIntersect (double aLower, double aUpper, double bLower, double bUpper, int &bPrecedence) const
 
QPointF getFillBasePoint (QPointF matchingDataPoint) const
 
const QPolygonF getFillPolygon (const QVector< QPointF > *lineData, QCPDataRange segment) const
 
const QPolygonF getChannelFillPolygon (const QVector< QPointF > *lineData, QCPDataRange thisSegment, const QVector< QPointF > *otherData, QCPDataRange otherSegment) const
 
int findIndexBelowX (const QVector< QPointF > *data, double x) const
 
int findIndexAboveX (const QVector< QPointF > *data, double x) const
 
int findIndexBelowY (const QVector< QPointF > *data, double y) const
 
int findIndexAboveY (const QVector< QPointF > *data, double y) const
 
double pointDistance (const QPointF &pixelPoint, QCPGraphDataContainer::const_iterator &closestData) const
 
virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain, bool includeErrors) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain, bool includeErrors) const
 
virtual void drawFill (QCPPainter *painter, QVector< QPointF > *lineData) const
 
virtual void drawScatterPlot (QCPPainter *painter, QVector< QCPData > *scatterData) const
 
virtual void drawLinePlot (QCPPainter *painter, QVector< QPointF > *lineData) const
 
virtual void drawImpulsePlot (QCPPainter *painter, QVector< QPointF > *lineData) const
 
void getPreparedData (QVector< QCPData > *lineData, QVector< QCPData > *scatterData) const
 
void getPlotData (QVector< QPointF > *lineData, QVector< QCPData > *scatterData) const
 
void getScatterPlotData (QVector< QCPData > *scatterData) const
 
void getLinePlotData (QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
 
void getStepLeftPlotData (QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
 
void getStepRightPlotData (QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
 
void getStepCenterPlotData (QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
 
void getImpulsePlotData (QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
 
void drawError (QCPPainter *painter, double x, double y, const QCPData &data) const
 
void getVisibleDataBounds (QCPDataMap::const_iterator &lower, QCPDataMap::const_iterator &upper) const
 
int countDataInBounds (const QCPDataMap::const_iterator &lower, const QCPDataMap::const_iterator &upper, int maxCount) const
 
void addFillBasePoints (QVector< QPointF > *lineData) const
 
void removeFillBasePoints (QVector< QPointF > *lineData) const
 
QPointF lowerFillBasePoint (double lowerKey) const
 
QPointF upperFillBasePoint (double upperKey) const
 
const QPolygonF getChannelFillPolygon (const QVector< QPointF > *lineData) const
 
int findIndexBelowX (const QVector< QPointF > *data, double x) const
 
int findIndexAboveX (const QVector< QPointF > *data, double x) const
 
int findIndexBelowY (const QVector< QPointF > *data, double y) const
 
int findIndexAboveY (const QVector< QPointF > *data, double y) const
 
double pointDistance (const QPointF &pixelPoint) const
 
- Protected Member Functions inherited from QCPAbstractPlottable1D< QCPGraphData >
void getDataSegments (QList< QCPDataRange > &selectedSegments, QList< QCPDataRange > &unselectedSegments) const
 
void drawPolyline (QCPPainter *painter, const QVector< QPointF > &lineData) const
 
- Protected Member Functions inherited from QCPAbstractPlottable
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
QPen mainPen () const
 
QBrush mainBrush () const
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
void applyErrorBarsAntialiasingHint (QCPPainter *painter) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 

Protected Attributes

LineStyle mLineStyle
 
QCPScatterStyle mScatterStyle
 
int mScatterSkip
 
QPointer< QCPGraphmChannelFillGraph
 
bool mAdaptiveSampling
 
QCPDataMapmData
 
QPen mErrorPen
 
ErrorType mErrorType
 
double mErrorBarSize
 
bool mErrorBarSkipSymbol
 
- Protected Attributes inherited from QCPAbstractPlottable1D< QCPGraphData >
QSharedPointer< QCPDataContainer< QCPGraphData > > mDataContainer
 
- Protected Attributes inherited from QCPAbstractPlottable
QString mName
 
bool mAntialiasedFill
 
bool mAntialiasedScatters
 
QPen mPen
 
QBrush mBrush
 
QPointer< QCPAxismKeyAxis
 
QPointer< QCPAxismValueAxis
 
QCP::SelectionType mSelectable
 
QCPDataSelection mSelection
 
QCPSelectionDecoratormSelectionDecorator
 
bool mAntialiasedErrorBars
 
QPen mSelectedPen
 
QBrush mSelectedBrush
 
bool mSelectable
 
bool mSelected
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Additional Inherited Members

- Signals inherited from QCPAbstractPlottable
void selectionChanged (bool selected)
 
void selectionChanged (const QCPDataSelection &selection)
 
void selectableChanged (QCP::SelectionType selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
- Protected Types inherited from QCPAbstractPlottable
enum  SignDomain { sdNegative , sdBoth , sdPositive }
 

Detailed Description

A plottable representing a graph in a plot.

Usually you create new graphs by calling QCustomPlot::addGraph. The resulting instance can be accessed via QCustomPlot::graph.

To plot data, assign it with the setData or addData functions. Alternatively, you can also access and modify the data via the data method, which returns a pointer to the internal QCPGraphDataContainer.

Graphs are used to display single-valued data. Single-valued means that there should only be one data point per unique key coordinate. In other words, the graph can't have loops. If you do want to plot non-single-valued curves, rather use the QCPCurve plottable.

Gaps in the graph line can be created by adding data points with NaN as value (qQNaN() or std::numeric_limits<double>::quiet_NaN()) in between the two data points that shall be separated.

Changing the appearance

The appearance of the graph is mainly determined by the line style, scatter style, brush and pen of the graph (setLineStyle, setScatterStyle, setBrush, setPen).

Filling under or between graphs

QCPGraph knows two types of fills: Normal graph fills towards the zero-value-line parallel to the key axis of the graph, and fills between two graphs, called channel fills. To enable a fill, just set a brush with setBrush which is neither Qt::NoBrush nor fully transparent.

By default, a normal fill towards the zero-value-line will be drawn. To set up a channel fill between this graph and another one, call setChannelFillGraph with the other graph as parameter.

See also
QCustomPlot::addGraph, QCustomPlot::graph

Usually QCustomPlot creates graphs internally via QCustomPlot::addGraph and the resulting instance is accessed via QCustomPlot::graph.

To plot data, assign it with the setData or addData functions. Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

Graphs are used to display single-valued data. Single-valued means that there should only be one data point per unique key coordinate. In other words, the graph can't have loops. If you do want to plot non-single-valued curves, rather use the QCPCurve plottable.

Gaps in the graph line can be created by adding data points with NaN as value (qQNaN() or std::numeric_limits<double>::quiet_NaN()) in between the two data points that shall be separated.

Changing the appearance

The appearance of the graph is mainly determined by the line style, scatter style, brush and pen of the graph (setLineStyle, setScatterStyle, setBrush, setPen).

Filling under or between graphs

QCPGraph knows two types of fills: Normal graph fills towards the zero-value-line parallel to the key axis of the graph, and fills between two graphs, called channel fills. To enable a fill, just set a brush with setBrush which is neither Qt::NoBrush nor fully transparent.

By default, a normal fill towards the zero-value-line will be drawn. To set up a channel fill between this graph and another one, call setChannelFillGraph with the other graph as parameter.

See also
QCustomPlot::addGraph, QCustomPlot::graph

Definition at line 5996 of file qcustomplot.h.

Member Enumeration Documentation

◆ ErrorType

Defines what kind of error bars are drawn for each data point

Enumerator
etNone 

No error bars are shown.

etKey 

Error bars for the key dimension of the data point are shown.

etValue 

Error bars for the value dimension of the data point are shown

etBoth 

Error bars for both key and value dimensions of the data point are shown

Definition at line 3018 of file qcustomplot.h.

◆ LineStyle [1/2]

Defines how the graph's line is represented visually in the plot. The line is drawn with the current pen of the graph (setPen).

See also
setLineStyle
Enumerator
lsNone 

data points are not connected with any lines (e.g. data only represented with symbols according to the scatter style, see setScatterStyle)

lsLine 

data points are connected by a straight line

lsStepLeft 

line is drawn as steps where the step height is the value of the left data point

lsStepRight 

line is drawn as steps where the step height is the value of the right data point

lsStepCenter 

line is drawn as steps where the step is in between two data points

lsImpulse 

each data point is represented by a line parallel to the value axis, which reaches from the data point to the zero-value-line

lsNone 

data points are not connected with any lines (e.g. data only represented with symbols according to the scatter style, see setScatterStyle)

lsLine 

data points are connected by a straight line

lsStepLeft 

line is drawn as steps where the step height is the value of the left data point

lsStepRight 

line is drawn as steps where the step height is the value of the right data point

lsStepCenter 

line is drawn as steps where the step is in between two data points

lsImpulse 

each data point is represented by a line parallel to the value axis, which reaches from the data point to the zero-value-line

Definition at line 6014 of file qcustomplot.h.

◆ LineStyle [2/2]

Defines how the graph's line is represented visually in the plot. The line is drawn with the current pen of the graph (setPen).

See also
setLineStyle
Enumerator
lsNone 

data points are not connected with any lines (e.g. data only represented with symbols according to the scatter style, see setScatterStyle)

lsLine 

data points are connected by a straight line

lsStepLeft 

line is drawn as steps where the step height is the value of the left data point

lsStepRight 

line is drawn as steps where the step height is the value of the right data point

lsStepCenter 

line is drawn as steps where the step is in between two data points

lsImpulse 

each data point is represented by a line parallel to the value axis, which reaches from the data point to the zero-value-line

lsNone 

data points are not connected with any lines (e.g. data only represented with symbols according to the scatter style, see setScatterStyle)

lsLine 

data points are connected by a straight line

lsStepLeft 

line is drawn as steps where the step height is the value of the left data point

lsStepRight 

line is drawn as steps where the step height is the value of the right data point

lsStepCenter 

line is drawn as steps where the step is in between two data points

lsImpulse 

each data point is represented by a line parallel to the value axis, which reaches from the data point to the zero-value-line

Definition at line 2994 of file qcustomplot.h.

Constructor & Destructor Documentation

◆ QCPGraph() [1/2]

QCPGraph::QCPGraph ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

Constructs a graph which uses keyAxis as its key axis ("x") and valueAxis as its value axis ("y"). keyAxis and valueAxis must reside in the same QCustomPlot instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though.

The created QCPGraph is automatically registered with the QCustomPlot instance inferred from keyAxis. This QCustomPlot instance takes ownership of the QCPGraph, so do not delete it manually but use QCustomPlot::removePlottable() instead.

To directly create a graph inside a plot, you can also use the simpler QCustomPlot::addGraph function.

Constructs a graph which uses keyAxis as its key axis ("x") and valueAxis as its value axis ("y"). keyAxis and valueAxis must reside in the same QCustomPlot instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though.

The constructed QCPGraph can be added to the plot with QCustomPlot::addPlottable, QCustomPlot then takes ownership of the graph.

To directly create a graph inside a plot, you can also use the simpler QCustomPlot::addGraph function.

Definition at line 20812 of file qcustomplot.cpp.

References ecvColor::blue(), lsLine, QCPLayerable::mParentPlot, QCustomPlot::registerGraph(), setAdaptiveSampling(), QCPAbstractPlottable::setBrush(), setChannelFillGraph(), setLineStyle(), QCPAbstractPlottable::setPen(), and setScatterSkip().

◆ ~QCPGraph() [1/2]

QCPGraph::~QCPGraph ( )
virtual

Definition at line 20826 of file qcustomplot.cpp.

◆ QCPGraph() [2/2]

QCPGraph::QCPGraph ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPGraph() [2/2]

virtual QCPGraph::~QCPGraph ( )
virtual

Member Function Documentation

◆ adaptiveSampling() [1/2]

bool QCPGraph::adaptiveSampling ( ) const
inline

Definition at line 6047 of file qcustomplot.h.

◆ adaptiveSampling() [2/2]

bool QCPGraph::adaptiveSampling ( ) const
inline

Definition at line 3043 of file qcustomplot.h.

◆ addData() [1/6]

void QCPGraph::addData ( const QCPData data)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided single data point in data to the current data.

Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

See also
removeData

Definition at line 15266 of file qcustomplot.cpp.

References data(), mData, and qtCompatMapInsertMulti().

◆ addData() [2/6]

void QCPGraph::addData ( const QCPDataMap dataMap)

Adds the provided data points in dataMap to the current data.

Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

See also
removeData

Definition at line 15254 of file qcustomplot.cpp.

References mData, and qtCompatMapUnite().

◆ addData() [3/6]

void QCPGraph::addData ( const QVector< double > &  keys,
const QVector< double > &  values 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided data points as key and value pairs to the current data.

Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

See also
removeData

Definition at line 15295 of file qcustomplot.cpp.

References QCPData::key, mData, qtCompatMapInsertMulti(), and QCPData::value.

◆ addData() [4/6]

void QCPGraph::addData ( const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Adds the provided points in keys and values to the current data. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

If you can guarantee that the passed data points are sorted by keys in ascending order, you can set alreadySorted to true, to improve performance by saving a sorting run.

Alternatively, you can also access and modify the data directly via the data method, which returns a pointer to the internal data container.

Definition at line 20982 of file qcustomplot.cpp.

References QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

Referenced by setData().

◆ addData() [5/6]

void QCPGraph::addData ( double  key,
double  value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Adds the provided data point as key and value to the current data.

Alternatively, you can also access and modify the data directly via the data method, which returns a pointer to the internal data container.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided single data point as key and value pair to the current data.

Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

See also
removeData

Definition at line 21012 of file qcustomplot.cpp.

References QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

◆ addData() [6/6]

void QCPGraph::addData ( double  key,
double  value 
)

◆ addFillBasePoints()

void QCPGraph::addFillBasePoints ( QVector< QPointF > *  lineData) const
protected

◆ channelFillGraph() [1/2]

QCPGraph* QCPGraph::channelFillGraph ( ) const
inline

Definition at line 6046 of file qcustomplot.h.

References data().

◆ channelFillGraph() [2/2]

QCPGraph* QCPGraph::channelFillGraph ( ) const
inline

Definition at line 3042 of file qcustomplot.h.

References data().

◆ clearData()

void QCPGraph::clearData ( )
virtual

Removes all data points.

See also
removeData, removeDataAfter, removeDataBefore

Implements QCPAbstractPlottable.

Definition at line 15354 of file qcustomplot.cpp.

References mData.

◆ countDataInBounds()

int QCPGraph::countDataInBounds ( const QCPDataMap::const_iterator &  lower,
const QCPDataMap::const_iterator &  upper,
int  maxCount 
) const
protected

Definition at line 16602 of file qcustomplot.cpp.

References count, and mData.

Referenced by getPreparedData().

◆ data() [1/2]

QCPDataMap * QCPGraph::data ( ) const
inline

Returns a shared pointer to the internal data storage of type QCPGraphDataContainer. You may use it to directly manipulate the data, which may be more convenient and faster than using the regular setData or addData methods.

Returns a pointer to the internal data storage of type QCPDataMap. You may use it to directly manipulate the data, which may be more convenient and faster than using the regular setData or addData methods, in certain situations.

Definition at line 6040 of file qcustomplot.h.

Referenced by addData(), channelFillGraph(), WolmanCustomPlot::dataContainer(), dataToImpulseLines(), dataToLines(), dataToStepCenterLines(), dataToStepLeftLines(), dataToStepRightLines(), drawError(), findIndexAboveX(), findIndexAboveY(), findIndexBelowX(), findIndexBelowY(), getScatters(), setData(), and QCPItemTracer::updatePosition().

◆ data() [2/2]

QCPDataMap* QCPGraph::data ( ) const
inline

Definition at line 3035 of file qcustomplot.h.

◆ dataToImpulseLines()

QVector< QPointF > QCPGraph::dataToImpulseLines ( const QVector< QCPGraphData > &  data) const
protected

◆ dataToLines()

QVector< QPointF > QCPGraph::dataToLines ( const QVector< QCPGraphData > &  data) const
protected

◆ dataToStepCenterLines()

QVector< QPointF > QCPGraph::dataToStepCenterLines ( const QVector< QCPGraphData > &  data) const
protected

◆ dataToStepLeftLines()

QVector< QPointF > QCPGraph::dataToStepLeftLines ( const QVector< QCPGraphData > &  data) const
protected

◆ dataToStepRightLines()

QVector< QPointF > QCPGraph::dataToStepRightLines ( const QVector< QCPGraphData > &  data) const
protected

◆ draw() [1/2]

◆ draw() [2/2]

virtual void QCPGraph::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawError()

◆ drawFill() [1/2]

virtual void QCPGraph::drawFill ( QCPPainter painter,
QVector< QPointF > *  lineData 
) const
protectedvirtual

◆ drawFill() [2/2]

void QCPGraph::drawFill ( QCPPainter painter,
QVector< QPointF > *  lines 
) const
protectedvirtual

◆ drawImpulsePlot() [1/2]

void QCPGraph::drawImpulsePlot ( QCPPainter painter,
const QVector< QPointF > &  lines 
) const
protectedvirtual

Definition at line 21650 of file qcustomplot.cpp.

References QCPAbstractPlottable::applyDefaultAntialiasingHint(), and QCPPainter::setPen().

Referenced by draw().

◆ drawImpulsePlot() [2/2]

void QCPGraph::drawImpulsePlot ( QCPPainter painter,
QVector< QPointF > *  lineData 
) const
protectedvirtual

◆ drawLegendIcon() [1/2]

◆ drawLegendIcon() [2/2]

virtual void QCPGraph::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLinePlot() [1/2]

void QCPGraph::drawLinePlot ( QCPPainter painter,
const QVector< QPointF > &  lines 
) const
protectedvirtual

◆ drawLinePlot() [2/2]

◆ drawScatterPlot() [1/2]

void QCPGraph::drawScatterPlot ( QCPPainter painter,
const QVector< QPointF > &  scatters,
const QCPScatterStyle style 
) const
protectedvirtual

◆ drawScatterPlot() [2/2]

◆ errorBarSize()

double QCPGraph::errorBarSize ( ) const
inline

Definition at line 3040 of file qcustomplot.h.

◆ errorBarSkipSymbol()

bool QCPGraph::errorBarSkipSymbol ( ) const
inline

Definition at line 3041 of file qcustomplot.h.

◆ errorPen()

QPen QCPGraph::errorPen ( ) const
inline

Definition at line 3039 of file qcustomplot.h.

◆ errorType()

ErrorType QCPGraph::errorType ( ) const
inline

Definition at line 3038 of file qcustomplot.h.

Referenced by setErrorType().

◆ findIndexAboveX() [1/2]

int QCPGraph::findIndexAboveX ( const QVector< QPointF > *  data,
double  x 
) const
protected

Definition at line 22553 of file qcustomplot.cpp.

References data(), size, and x.

Referenced by getChannelFillPolygon().

◆ findIndexAboveX() [2/2]

int QCPGraph::findIndexAboveX ( const QVector< QPointF > *  data,
double  x 
) const
protected

◆ findIndexAboveY() [1/2]

int QCPGraph::findIndexAboveY ( const QVector< QPointF > *  data,
double  y 
) const
protected

Definition at line 22593 of file qcustomplot.cpp.

References data(), size, and y.

Referenced by getChannelFillPolygon().

◆ findIndexAboveY() [2/2]

int QCPGraph::findIndexAboveY ( const QVector< QPointF > *  data,
double  y 
) const
protected

◆ findIndexBelowX() [1/2]

int QCPGraph::findIndexBelowX ( const QVector< QPointF > *  data,
double  x 
) const
protected

Definition at line 22573 of file qcustomplot.cpp.

References data(), and x.

Referenced by getChannelFillPolygon().

◆ findIndexBelowX() [2/2]

int QCPGraph::findIndexBelowX ( const QVector< QPointF > *  data,
double  x 
) const
protected

◆ findIndexBelowY() [1/2]

int QCPGraph::findIndexBelowY ( const QVector< QPointF > *  data,
double  y 
) const
protected

Definition at line 22685 of file qcustomplot.cpp.

References data(), and y.

Referenced by getChannelFillPolygon().

◆ findIndexBelowY() [2/2]

int QCPGraph::findIndexBelowY ( const QVector< QPointF > *  data,
double  y 
) const
protected

◆ getChannelFillPolygon() [1/2]

const QPolygonF QCPGraph::getChannelFillPolygon ( const QVector< QPointF > *  lineData) const
protected

◆ getChannelFillPolygon() [2/2]

const QPolygonF QCPGraph::getChannelFillPolygon ( const QVector< QPointF > *  lineData,
QCPDataRange  thisSegment,
const QVector< QPointF > *  otherData,
QCPDataRange  otherSegment 
) const
protected

◆ getFillBasePoint()

◆ getFillPolygon()

const QPolygonF QCPGraph::getFillPolygon ( const QVector< QPointF > *  lineData,
QCPDataRange  segment 
) const
protected

◆ getImpulsePlotData()

void QCPGraph::getImpulsePlotData ( QVector< QPointF > *  linePixelData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getKeyRange() [1/3]

QCPRange QCPGraph::getKeyRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth 
) const
virtual

Returns the coordinate range that all data in this plottable span in the key axis dimension. For logarithmic plots, one can set inSignDomain to either QCP::sdNegative or QCP::sdPositive in order to restrict the returned range to that sign domain. E.g. when only negative range is wanted, set inSignDomain to QCP::sdNegative and all positive points will be ignored for range calculation. For no restriction, just set inSignDomain to QCP::sdBoth (default). foundRange is an output parameter that indicates whether a range could be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).

Note that foundRange is not the same as QCPRange::validRange, since the range returned by this function may have size zero (e.g. when there is only one data point). In this case foundRange would return true, but the returned range is not a valid range in terms of QCPRange::validRange.

See also
rescaleAxes, getValueRange

Implements QCPAbstractPlottable.

Definition at line 21047 of file qcustomplot.cpp.

References QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

Referenced by getKeyRange(), and rescaleKeyAxis().

◆ getKeyRange() [2/3]

QCPRange QCPGraph::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain,
bool  includeErrors 
) const
protectedvirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Allows to specify whether the error bars should be included in the range calculation.

See also
getKeyRange(bool &foundRange, SignDomain inSignDomain)

Definition at line 17148 of file qcustomplot.cpp.

References QCPRange::lower, mData, QCPAbstractPlottable::sdBoth, QCPAbstractPlottable::sdNegative, QCPAbstractPlottable::sdPositive, and QCPRange::upper.

◆ getKeyRange() [3/3]

QCPRange QCPGraph::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

Definition at line 17124 of file qcustomplot.cpp.

References getKeyRange().

◆ getLinePlotData()

void QCPGraph::getLinePlotData ( QVector< QPointF > *  linePixelData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getLines()

void QCPGraph::getLines ( QVector< QPointF > *  lines,
const QCPDataRange dataRange 
) const
protected

◆ getNonNanSegments()

QVector< QCPDataRange > QCPGraph::getNonNanSegments ( const QVector< QPointF > *  lineData,
Qt::Orientation  keyOrientation 
) const
protected

Definition at line 22124 of file qcustomplot.cpp.

References result, QCPDataRange::setBegin(), and QCPDataRange::setEnd().

Referenced by drawFill().

◆ getOptimizedLineData()

◆ getOptimizedScatterData()

◆ getOverlappingSegments()

QVector< QPair< QCPDataRange, QCPDataRange > > QCPGraph::getOverlappingSegments ( QVector< QCPDataRange thisSegments,
const QVector< QPointF > *  thisData,
QVector< QCPDataRange otherSegments,
const QVector< QPointF > *  otherData 
) const
protected

Definition at line 22186 of file qcustomplot.cpp.

References QCPAbstractPlottable::mKeyAxis, result, and segmentsIntersect().

Referenced by drawFill().

◆ getPlotData()

void QCPGraph::getPlotData ( QVector< QPointF > *  lineData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getPreparedData()

◆ getScatterPlotData()

void QCPGraph::getScatterPlotData ( QVector< QCPData > *  scatterData) const
protected

Definition at line 15603 of file qcustomplot.cpp.

References getPreparedData().

Referenced by getPlotData(), and pointDistance().

◆ getScatters()

void QCPGraph::getScatters ( QVector< QPointF > *  scatters,
const QCPDataRange dataRange 
) const
protected

◆ getStepCenterPlotData()

void QCPGraph::getStepCenterPlotData ( QVector< QPointF > *  linePixelData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getStepLeftPlotData()

void QCPGraph::getStepLeftPlotData ( QVector< QPointF > *  linePixelData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getStepRightPlotData()

void QCPGraph::getStepRightPlotData ( QVector< QPointF > *  linePixelData,
QVector< QCPData > *  scatterData 
) const
protected

◆ getValueRange() [1/3]

QCPRange QCPGraph::getValueRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth,
const QCPRange inKeyRange = QCPRange() 
) const
virtual

Returns the coordinate range that the data points in the specified key range (inKeyRange) span in the value axis dimension. For logarithmic plots, one can set inSignDomain to either QCP::sdNegative or QCP::sdPositive in order to restrict the returned range to that sign domain. E.g. when only negative range is wanted, set inSignDomain to QCP::sdNegative and all positive points will be ignored for range calculation. For no restriction, just set inSignDomain to QCP::sdBoth (default). foundRange is an output parameter that indicates whether a range could be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).

If inKeyRange has both lower and upper bound set to zero (is equal to QCPRange()), all data points are considered, without any restriction on the keys.

Note that foundRange is not the same as QCPRange::validRange, since the range returned by this function may have size zero (e.g. when there is only one data point). In this case foundRange would return true, but the returned range is not a valid range in terms of QCPRange::validRange.

See also
rescaleAxes, getKeyRange

Implements QCPAbstractPlottable.

Definition at line 21053 of file qcustomplot.cpp.

References QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

Referenced by getValueRange(), and rescaleValueAxis().

◆ getValueRange() [2/3]

QCPRange QCPGraph::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain,
bool  includeErrors 
) const
protectedvirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Allows to specify whether the error bars should be included in the range calculation.

See also
getValueRange(bool &foundRange, SignDomain inSignDomain)

Definition at line 17265 of file qcustomplot.cpp.

References QCPRange::lower, mData, QCPAbstractPlottable::sdBoth, QCPAbstractPlottable::sdNegative, QCPAbstractPlottable::sdPositive, and QCPRange::upper.

◆ getValueRange() [3/3]

QCPRange QCPGraph::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

called by rescaleAxes functions to get the full data value bounds. For logarithmic plots, one can set inSignDomain to either sdNegative or sdPositive in order to restrict the returned range to that sign domain. E.g. when only negative range is wanted, set inSignDomain to sdNegative and all positive points will be ignored for range calculation. For no restriction, just set inSignDomain to sdBoth (default). foundRange is an output parameter that indicates whether a range could be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).

Note that foundRange is not the same as QCPRange::validRange, since the range returned by this function may have size zero, which wouldn't count as a valid range.

See also
rescaleAxes, getKeyRange

Implements QCPAbstractPlottable.

Definition at line 17133 of file qcustomplot.cpp.

References getValueRange().

◆ getVisibleDataBounds() [1/2]

void QCPGraph::getVisibleDataBounds ( QCPDataMap::const_iterator &  lower,
QCPDataMap::const_iterator &  upper 
) const
protected

Definition at line 16560 of file qcustomplot.cpp.

References mData, and QCPAbstractPlottable::mKeyAxis.

◆ getVisibleDataBounds() [2/2]

void QCPGraph::getVisibleDataBounds ( QCPGraphDataContainer::const_iterator begin,
QCPGraphDataContainer::const_iterator end,
const QCPDataRange rangeRestriction 
) const
protected

This method outputs the currently visible data range via begin and end. The returned range will also never exceed rangeRestriction.

This method takes into account that the drawing of data lines at the axis rect border always requires the points just outside the visible axis range. So begin and end may actually indicate a range that contains one additional data point to the left and right of the visible axis range.

Definition at line 22087 of file qcustomplot.cpp.

References QCPDataRange::isEmpty(), QCPAbstractPlottable::keyAxis(), QCPRange::lower, QCPAbstractPlottable1D< QCPGraphData >::mDataContainer, QCPAbstractPlottable::mKeyAxis, QCPAbstractPlottable::mValueAxis, QCPAxis::range(), QCPRange::upper, and QCPAbstractPlottable::valueAxis().

Referenced by getLines(), getPreparedData(), and getScatters().

◆ lineStyle() [1/2]

LineStyle QCPGraph::lineStyle ( ) const
inline

Definition at line 6043 of file qcustomplot.h.

◆ lineStyle() [2/2]

LineStyle QCPGraph::lineStyle ( ) const
inline

Definition at line 3036 of file qcustomplot.h.

◆ lowerFillBasePoint()

◆ pointDistance() [1/2]

double QCPGraph::pointDistance ( const QPointF &  pixelPoint) const
protected

◆ pointDistance() [2/2]

◆ removeData() [1/2]

void QCPGraph::removeData ( double  fromKey,
double  toKey 
)

Removes all data points with keys between fromKey and toKey. if fromKey is greater or equal to toKey, the function does nothing. To remove a single data point with known key, use removeData(double key).

See also
addData, clearData

Definition at line 15332 of file qcustomplot.cpp.

References mData.

◆ removeData() [2/2]

void QCPGraph::removeData ( double  key)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Removes a single data point at key. If the position is not known with absolute precision, consider using removeData(double fromKey, double toKey) with a small fuzziness interval around the suspected position, depeding on the precision with which the key is known.

See also
addData, clearData

Definition at line 15348 of file qcustomplot.cpp.

References mData.

◆ removeDataAfter()

void QCPGraph::removeDataAfter ( double  key)

Removes all data points with keys greater than key.

See also
addData, clearData

Definition at line 15319 of file qcustomplot.cpp.

References mData.

◆ removeDataBefore()

void QCPGraph::removeDataBefore ( double  key)

Removes all data points with keys smaller than key.

See also
addData, clearData

Definition at line 15310 of file qcustomplot.cpp.

References mData.

◆ removeFillBasePoints()

void QCPGraph::removeFillBasePoints ( QVector< QPointF > *  lineData) const
protected

Definition at line 16654 of file qcustomplot.cpp.

◆ rescaleAxes() [1/3]

void QCPGraph::rescaleAxes ( bool  onlyEnlarge,
bool  includeErrorBars 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Allows to define whether error bars are taken into consideration when determining the new axis range.

See also
rescaleKeyAxis, rescaleValueAxis, QCPAbstractPlottable::rescaleAxes, QCustomPlot::rescaleAxes

Definition at line 15381 of file qcustomplot.cpp.

References rescaleKeyAxis(), and rescaleValueAxis().

Referenced by cvProbeFilter::apply(), WolmanCustomPlot::rescale(), and WolmanCustomPlot::WolmanCustomPlot().

◆ rescaleAxes() [2/3]

void QCPAbstractPlottable::rescaleAxes

Rescales the key and value axes associated with this plottable to contain all displayed data, so the whole plottable is visible. If the scaling of an axis is logarithmic, rescaleAxes will make sure not to rescale to an illegal range i.e. a range containing different signs and/or zero. Instead it will stay in the current sign domain and ignore all parts of the plottable that lie outside of that domain.

onlyEnlarge makes sure the ranges are only expanded, never reduced. So it's possible to show multiple plottables in their entirety by multiple calls to rescaleAxes where the first call has onlyEnlarge set to false (the default), and all subsequent set to true.

See also
rescaleKeyAxis, rescaleValueAxis, QCustomPlot::rescaleAxes, QCPAxis::rescale

Definition at line 3889 of file qcustomplot.cpp.

◆ rescaleAxes() [3/3]

void QCPAbstractPlottable::rescaleAxes

◆ rescaleKeyAxis() [1/3]

void QCPGraph::rescaleKeyAxis ( bool  onlyEnlarge,
bool  includeErrorBars 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Allows to define whether error bars (of kind QCPGraph::etKey) are taken into consideration when determining the new axis range.

See also
rescaleAxes, QCPAbstractPlottable::rescaleKeyAxis

Definition at line 15393 of file qcustomplot.cpp.

References getKeyRange(), QCPAbstractPlottable::keyAxis(), QCPRange::lower, mData, QCPAbstractPlottable::mKeyAxis, QCPAxis::range(), QCPAxis::scaleType(), QCPAbstractPlottable::sdBoth, QCPAbstractPlottable::sdNegative, QCPAbstractPlottable::sdPositive, QCPAxis::setRange(), QCPAxis::stLogarithmic, and QCPRange::upper.

◆ rescaleKeyAxis() [2/3]

void QCPAbstractPlottable::rescaleKeyAxis

Rescales the key axis of the plottable so the whole plottable is visible.

See rescaleAxes for detailed behaviour.

Definition at line 3890 of file qcustomplot.cpp.

Referenced by rescaleAxes().

◆ rescaleKeyAxis() [3/3]

void QCPAbstractPlottable::rescaleKeyAxis

◆ rescaleValueAxis() [1/3]

void QCPGraph::rescaleValueAxis ( bool  onlyEnlarge,
bool  includeErrorBars 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Allows to define whether error bars (of kind QCPGraph::etValue) are taken into consideration when determining the new axis range.

See also
rescaleAxes, QCPAbstractPlottable::rescaleValueAxis

Definition at line 15429 of file qcustomplot.cpp.

References getValueRange(), QCPRange::lower, mData, QCPAbstractPlottable::mValueAxis, QCPAxis::range(), QCPAxis::scaleType(), QCPAbstractPlottable::sdBoth, QCPAbstractPlottable::sdNegative, QCPAbstractPlottable::sdPositive, QCPAxis::setRange(), QCPAxis::stLogarithmic, QCPRange::upper, and QCPAbstractPlottable::valueAxis().

◆ rescaleValueAxis() [2/3]

void QCPAbstractPlottable::rescaleValueAxis

Rescales the value axis of the plottable so the whole plottable is visible.

Returns true if the axis was actually scaled. This might not be the case if this plottable has an invalid range, e.g. because it has no data points.

See rescaleAxes for detailed behaviour.

Definition at line 1738 of file qcustomplot.cpp.

◆ rescaleValueAxis() [3/3]

void QCPAbstractPlottable::rescaleValueAxis

Rescales the value axis of the plottable so the whole plottable is visible. If inKeyRange is set to true, only the data points which are in the currently visible key axis range are considered.

Returns true if the axis was actually scaled. This might not be the case if this plottable has an invalid range, e.g. because it has no data points.

See rescaleAxes for detailed behaviour.

Definition at line 3891 of file qcustomplot.cpp.

Referenced by rescaleAxes().

◆ scatterSkip()

int QCPGraph::scatterSkip ( ) const
inline

Definition at line 6045 of file qcustomplot.h.

◆ scatterStyle() [1/2]

QCPScatterStyle QCPGraph::scatterStyle ( ) const
inline

Definition at line 6044 of file qcustomplot.h.

◆ scatterStyle() [2/2]

QCPScatterStyle QCPGraph::scatterStyle ( ) const
inline

Definition at line 3037 of file qcustomplot.h.

◆ segmentsIntersect()

bool QCPGraph::segmentsIntersect ( double  aLower,
double  aUpper,
double  bLower,
double  bUpper,
int &  bPrecedence 
) const
protected

Definition at line 22264 of file qcustomplot.cpp.

Referenced by getOverlappingSegments().

◆ selectTest() [1/2]

double QCPGraph::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements a selectTest specific to this plottable's point geometry.

If details is not 0, it will be set to a QCPDataSelection, describing the closest data point to pos.

\seebaseclassmethod QCPAbstractPlottable::selectTest

Implements QCPAbstractPlottable.

Definition at line 21024 of file qcustomplot.cpp.

References QCPAbstractPlottable1D< QCPGraphData >::mDataContainer, QCPAbstractPlottable::mKeyAxis, QCPAbstractPlottable::mSelectable, QCPAbstractPlottable::mValueAxis, pointDistance(), result, and QCP::stNone.

◆ selectTest() [2/2]

virtual double QCPGraph::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

This function is used to decide whether a click hits a layerable object or not.

pos is a point in pixel coordinates on the QCustomPlot surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn't be determined, -1.0 is returned. Further, if onlySelectable is true and the object is not selectable, -1.0 is returned, too.

If the object is represented not by single lines but by an area like a QCPItemText or the bars of a QCPBars plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot's selection tolerance. (typically the selectionTolerance multiplied by 0.99).

Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.e. closer than 0.99*selectionTolerance).

The actual setting of the selection state is not done by this function. This is handled by the parent QCustomPlot when the mouseReleaseEvent occurs, and the finally selected object is notified via the selectEvent/ deselectEvent methods.

details is an optional output parameter. Every layerable subclass may place any information in details. This information will be passed to selectEvent when the parent QCustomPlot decides on the basis of this selectTest call, that the object was successfully selected. The subsequent call to selectEvent will carry the details. This is useful for multi-part objects (like QCPAxis). This way, a possibly complex calculation to decide which part was clicked is only done once in selectTest. The result (i.e. the actually clicked part) can then be placed in details. So in the subsequent selectEvent, the decision which part was selected doesn't have to be done a second time for a single selection operation.

In the case of 1D Plottables (QCPAbstractPlottable1D, like QCPGraph or QCPBars) details will be set to a QCPDataSelection, describing the closest data point to pos.

You may pass 0 as details to indicate that you are not interested in those selection details.

See also
selectEvent, deselectEvent, mousePressEvent, wheelEvent, QCustomPlot::setInteractions, QCPAbstractPlottable1D::selectTestRect

This function is used to decide whether a click hits a layerable object or not.

pos is a point in pixel coordinates on the QCustomPlot surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn't be determined, -1.0 is returned. Further, if onlySelectable is true and the object is not selectable, -1.0 is returned, too.

If the object is represented not by single lines but by an area like a QCPItemText or the bars of a QCPBars plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot's selection tolerance. (typically the selectionTolerance multiplied by 0.99).

Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.e. closer than 0.99*selectionTolerance).

The actual setting of the selection state is not done by this function. This is handled by the parent QCustomPlot when the mouseReleaseEvent occurs, and the finally selected object is notified via the selectEvent/deselectEvent methods.

details is an optional output parameter. Every layerable subclass may place any information in details. This information will be passed to selectEvent when the parent QCustomPlot decides on the basis of this selectTest call, that the object was successfully selected. The subsequent call to selectEvent will carry the details. This is useful for multi-part objects (like QCPAxis). This way, a possibly complex calculation to decide which part was clicked is only done once in selectTest. The result (i.e. the actually clicked part) can then be placed in details. So in the subsequent selectEvent, the decision which part was selected doesn't have to be done a second time for a single selection operation.

You may pass 0 as details to indicate that you are not interested in those selection details.

See also
selectEvent, deselectEvent, QCustomPlot::setInteractions

Implements QCPAbstractPlottable.

◆ setAdaptiveSampling() [1/2]

void QCPGraph::setAdaptiveSampling ( bool  enabled)

Sets whether adaptive sampling shall be used when plotting this graph. QCustomPlot's adaptive sampling technique can drastically improve the replot performance for graphs with a larger number of points (e.g. above 10,000), without notably changing the appearance of the graph.

By default, adaptive sampling is enabled. Even if enabled, QCustomPlot decides whether adaptive sampling shall actually be used on a per-graph basis. So leaving adaptive sampling enabled has no disadvantage in almost all cases.

A line plot of 500,000 points without

and with adaptive sampling"

As can be seen, line plots experience no visual degradation from adaptive sampling. Outliers are reproduced reliably, as well as the overall shape of the data set. The replot time reduces dramatically though. This allows QCustomPlot to display large amounts of data in realtime.

A scatter plot of 100,000 points

without and with adaptive sampling"

Care must be taken when using high-density scatter plots in combination with adaptive sampling. The adaptive sampling algorithm treats scatter plots more carefully than line plots which still gives a significant reduction of replot times, but not quite as much as for line plots. This is because scatter plots inherently need more data points to be preserved in order to still resemble the original, non-adaptive-sampling plot. As shown above, the results still aren't quite identical, as banding occurs for the outer data points. This is in fact intentional, such that the boundaries of the data cloud stay visible to the viewer. How strong the banding appears, depends on the point density, i.e. the number of points in the plot.

For some situations with scatter plots it might thus be desirable to manually turn adaptive sampling off. For example, when saving the plot to disk. This can be achieved by setting enabled to false before issuing a command like QCustomPlot::savePng, and setting enabled back to true afterwards.

Definition at line 20965 of file qcustomplot.cpp.

References mAdaptiveSampling.

Referenced by QCPGraph().

◆ setAdaptiveSampling() [2/2]

void QCPGraph::setAdaptiveSampling ( bool  enabled)

◆ setChannelFillGraph() [1/2]

void QCPGraph::setChannelFillGraph ( QCPGraph targetGraph)

Sets the target graph for filling the area between this graph and targetGraph with the current brush (setBrush).

When targetGraph is set to 0, a normal graph fill to the zero-value-line will be shown. To disable any filling, set the brush to Qt::NoBrush.

See also
setBrush

Definition at line 20911 of file qcustomplot.cpp.

References mChannelFillGraph, and QCPLayerable::mParentPlot.

Referenced by QCPGraph().

◆ setChannelFillGraph() [2/2]

void QCPGraph::setChannelFillGraph ( QCPGraph targetGraph)

◆ setData() [1/4]

void QCPGraph::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Replaces the current data with the provided points in key and value pairs. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

Definition at line 14931 of file qcustomplot.cpp.

References QCPData::key, mData, qtCompatMapInsertMulti(), and QCPData::value.

◆ setData() [2/4]

void QCPGraph::setData ( const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Replaces the current data with the provided points in keys and values. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

If you can guarantee that the passed data points are sorted by keys in ascending order, you can set alreadySorted to true, to improve performance by saving a sorting run.

See also
addData

Definition at line 20861 of file qcustomplot.cpp.

References addData(), and QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

◆ setData() [3/4]

void QCPGraph::setData ( QCPDataMap data,
bool  copy = false 
)

Replaces the current data with the provided data.

If copy is set to true, data points in data will only be copied. if false, the graph takes ownership of the passed data and replaces the internal data pointer with it. This is significantly faster than copying for large datasets.

Alternatively, you can also access and modify the graph's data via the data method, which returns a pointer to the internal QCPDataMap.

Definition at line 14909 of file qcustomplot.cpp.

References copy, data(), and mData.

◆ setData() [4/4]

void QCPGraph::setData ( QSharedPointer< QCPGraphDataContainer data)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Replaces the current data container with the provided data container.

Since a QSharedPointer is used, multiple QCPGraphs may share the same data container safely. Modifying the data in the container will then affect all graphs that share the container. Sharing can be achieved by simply exchanging the data containers wrapped in shared pointers:

If you do not wish to share containers, but create a copy from an existing container, rather use the QCPDataContainer<DataType>::set method on the graph's data container directly:

See also
addData

Definition at line 20845 of file qcustomplot.cpp.

References data(), and QCPAbstractPlottable1D< QCPGraphData >::mDataContainer.

Referenced by cvProbeFilter::apply(), ccHistogramWindow::refresh(), ccWaveWidget::refresh(), and WolmanCustomPlot::WolmanCustomPlot().

◆ setDataBothError() [1/2]

void QCPGraph::setDataBothError ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< double > &  keyError,
const QVector< double > &  valueError 
)

Replaces the current data with the provided points in key and value pairs. Additionally the symmetrical key and value errors of the data points are set to the values in keyError and valueError. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

For asymmetrical errors (plus different from minus), see the overloaded version of this function.

Definition at line 15065 of file qcustomplot.cpp.

References QCPData::key, QCPData::keyErrorMinus, QCPData::keyErrorPlus, mData, qtCompatMapInsertMulti(), QCPData::value, QCPData::valueErrorMinus, and QCPData::valueErrorPlus.

◆ setDataBothError() [2/2]

void QCPGraph::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 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in key and value pairs. Additionally the negative key and value errors of the data points are set to the values in keyErrorMinus and valueErrorMinus. The positive key and value errors are set to the values in keyErrorPlus valueErrorPlus. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

Definition at line 15096 of file qcustomplot.cpp.

References QCPData::key, QCPData::keyErrorMinus, QCPData::keyErrorPlus, mData, qtCompatMapInsertMulti(), QCPData::value, QCPData::valueErrorMinus, and QCPData::valueErrorPlus.

◆ setDataKeyError() [1/2]

void QCPGraph::setDataKeyError ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< double > &  keyError 
)

Replaces the current data with the provided points in key and value pairs. Additionally the symmetrical key error of the data points are set to the values in keyError. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

For asymmetrical errors (plus different from minus), see the overloaded version of this function.

Definition at line 15009 of file qcustomplot.cpp.

References QCPData::key, QCPData::keyErrorMinus, QCPData::keyErrorPlus, mData, qtCompatMapInsertMulti(), and QCPData::value.

◆ setDataKeyError() [2/2]

void QCPGraph::setDataKeyError ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< double > &  keyErrorMinus,
const QVector< double > &  keyErrorPlus 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in key and value pairs. Additionally the negative key error of the data points are set to the values in keyErrorMinus, the positive key error to keyErrorPlus. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

Definition at line 15035 of file qcustomplot.cpp.

References QCPData::key, QCPData::keyErrorMinus, QCPData::keyErrorPlus, mData, qtCompatMapInsertMulti(), and QCPData::value.

◆ setDataValueError() [1/2]

void QCPGraph::setDataValueError ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< double > &  valueError 
)

Replaces the current data with the provided points in key and value pairs. Additionally the symmetrical value error of the data points are set to the values in valueError. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

For asymmetrical errors (plus different from minus), see the overloaded version of this function.

Definition at line 14954 of file qcustomplot.cpp.

References QCPData::key, mData, qtCompatMapInsertMulti(), QCPData::value, QCPData::valueErrorMinus, and QCPData::valueErrorPlus.

◆ setDataValueError() [2/2]

void QCPGraph::setDataValueError ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< double > &  valueErrorMinus,
const QVector< double > &  valueErrorPlus 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in key and value pairs. Additionally the negative value error of the data points are set to the values in valueErrorMinus, the positive value error to valueErrorPlus. For error bars to show appropriately, see setErrorType. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.

Definition at line 14980 of file qcustomplot.cpp.

References QCPData::key, mData, qtCompatMapInsertMulti(), QCPData::value, QCPData::valueErrorMinus, and QCPData::valueErrorPlus.

◆ setErrorBarSize()

void QCPGraph::setErrorBarSize ( double  size)

Sets the width of the handles at both ends of an error bar in pixels.

Definition at line 15161 of file qcustomplot.cpp.

References mErrorBarSize, and size.

◆ setErrorBarSkipSymbol()

void QCPGraph::setErrorBarSkipSymbol ( bool  enabled)

If enabled is set to true, the error bar will not be drawn as a solid line under the scatter symbol but leave some free space around the symbol.

This feature uses the current scatter size (QCPScatterStyle::setSize) to determine the size of the area to leave blank. So when drawing Pixmaps as scatter points (QCPScatterStyle::ssPixmap), the scatter size must be set manually to a value corresponding to the size of the Pixmap, if the error bars should leave gaps to its boundaries.

setErrorType, setErrorBarSize, setScatterStyle

Definition at line 15175 of file qcustomplot.cpp.

References mErrorBarSkipSymbol.

◆ setErrorPen()

void QCPGraph::setErrorPen ( const QPen &  pen)

Sets the pen with which the error bars will be drawn.

See also
setErrorBarSize, setErrorType

Definition at line 15156 of file qcustomplot.cpp.

References mErrorPen, and QCPAbstractPlottable::pen().

◆ setErrorType()

void QCPGraph::setErrorType ( ErrorType  errorType)

Sets which kind of error bars (Key Error, Value Error or both) should be drawn on each data point. If you set errorType to something other than etNone, make sure to actually pass error data via the specific setData functions along with the data points (e.g. setDataValueError, setDataKeyError, setDataBothError).

See also
ErrorType

Definition at line 15150 of file qcustomplot.cpp.

References errorType(), and mErrorType.

◆ setLineStyle() [1/2]

void QCPGraph::setLineStyle ( LineStyle  ls)

Sets how the single data points are connected in the plot. For scatter-only plots, set ls to lsNone and setScatterStyle to the desired scatter style.

See also
setScatterStyle

Definition at line 20875 of file qcustomplot.cpp.

References mLineStyle.

Referenced by QCPGraph(), and WolmanCustomPlot::WolmanCustomPlot().

◆ setLineStyle() [2/2]

void QCPGraph::setLineStyle ( LineStyle  ls)

◆ setScatterSkip()

void QCPGraph::setScatterSkip ( int  skip)

If scatters are displayed (scatter style not QCPScatterStyle::ssNone), skip number of scatter points are skipped/not drawn after every drawn scatter point.

This can be used to make the data appear sparser while for example still having a smooth line, and to improve performance for very high density plots.

If skip is set to 0 (default), all scatter points are drawn.

See also
setScatterStyle

Definition at line 20900 of file qcustomplot.cpp.

References mScatterSkip.

Referenced by QCPGraph().

◆ setScatterStyle() [1/2]

void QCPGraph::setScatterStyle ( const QCPScatterStyle style)

Sets the visual appearance of single data points in the plot. If set to QCPScatterStyle::ssNone, no scatter points are drawn (e.g. for line-only-plots with appropriate line style).

See also
QCPScatterStyle, setLineStyle

Definition at line 20884 of file qcustomplot.cpp.

References mScatterStyle.

Referenced by WolmanCustomPlot::WolmanCustomPlot().

◆ setScatterStyle() [2/2]

void QCPGraph::setScatterStyle ( const QCPScatterStyle style)

◆ upperFillBasePoint()

Member Data Documentation

◆ mAdaptiveSampling

bool QCPGraph::mAdaptiveSampling
protected

◆ mChannelFillGraph

QPointer< QCPGraph > QCPGraph::mChannelFillGraph
protected

Definition at line 6083 of file qcustomplot.h.

Referenced by drawFill(), getChannelFillPolygon(), and setChannelFillGraph().

◆ mData

◆ mErrorBarSize

double QCPGraph::mErrorBarSize
protected

Definition at line 3113 of file qcustomplot.h.

Referenced by drawError(), and setErrorBarSize().

◆ mErrorBarSkipSymbol

bool QCPGraph::mErrorBarSkipSymbol
protected

Definition at line 3114 of file qcustomplot.h.

Referenced by drawError(), and setErrorBarSkipSymbol().

◆ mErrorPen

QPen QCPGraph::mErrorPen
protected

Definition at line 3109 of file qcustomplot.h.

Referenced by drawScatterPlot(), and setErrorPen().

◆ mErrorType

ErrorType QCPGraph::mErrorType
protected

Definition at line 3112 of file qcustomplot.h.

Referenced by drawError(), drawScatterPlot(), and setErrorType().

◆ mLineStyle

LineStyle QCPGraph::mLineStyle
protected

◆ mScatterSkip

int QCPGraph::mScatterSkip
protected

Definition at line 6082 of file qcustomplot.h.

Referenced by getOptimizedScatterData(), and setScatterSkip().

◆ mScatterStyle

QCPScatterStyle QCPGraph::mScatterStyle
protected

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