QCPGraph
Public Types  
enum  LineStyle { lsNone , lsLine , lsStepLeft , lsStepRight , lsStepCenter , lsImpulse } 
Protected Attributes  
bool  mAdaptiveSampling 
QPointer< QCPGraph >  mChannelFillGraph 
LineStyle  mLineStyle 
int  mScatterSkip 
QCPScatterStyle  mScatterStyle 
Protected Attributes inherited from QCPAbstractPlottable1D< QCPGraphData >  
QSharedPointer< QCPDataContainer< QCPGraphData > >  mDataContainer 
Protected Attributes inherited from QCPAbstractPlottable  
bool  mAntialiasedFill 
bool  mAntialiasedScatters 
QBrush  mBrush 
QPointer< QCPAxis >  mKeyAxis 
QString  mName 
QPen  mPen 
QCP::SelectionType  mSelectable 
QCPDataSelection  mSelection 
QCPSelectionDecorator *  mSelectionDecorator 
QPointer< QCPAxis >  mValueAxis 
Protected Attributes inherited from QCPLayerable  
bool  mAntialiased 
QCPLayer *  mLayer 
QPointer< QCPLayerable >  mParentLayerable 
QCustomPlot *  mParentPlot 
bool  mVisible 
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 singlevalued data. Singlevalued 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 nonsinglevalued 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 zerovalueline 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 zerovalueline 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 5436 of file qcustomplot.h.
Member Enumeration Documentation
◆ LineStyle
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 zerovalueline 
Definition at line 5452 of file qcustomplot.h.
Constructor & Destructor Documentation
◆ QCPGraph()
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.
Definition at line 20875 of file qcustomplot.cpp.
◆ ~QCPGraph()

overridevirtual 
Definition at line 20893 of file qcustomplot.cpp.
Member Function Documentation
◆ adaptiveSampling()

inline 
Definition at line 5471 of file qcustomplot.h.
◆ addData() [1/2]
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 21049 of file qcustomplot.cpp.
◆ addData() [2/2]
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.
Definition at line 21075 of file qcustomplot.cpp.
◆ channelFillGraph()

inline 
Definition at line 5470 of file qcustomplot.h.
◆ data()

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.
Definition at line 5466 of file qcustomplot.h.
◆ dataToImpulseLines()

protected 
Takes raw data points in plot coordinates as data, and returns a vector containing pixel coordinate points which are suitable for drawing the line style lsImpulse.
The source of data is usually getOptimizedLineData, and this method is called in getLines if the line style is set accordingly.
 See also
 dataToLines, dataToStepLeftLines, dataToStepRightLines, dataToStepCenterLines, getLines, drawImpulsePlot
Definition at line 21534 of file qcustomplot.cpp.
◆ dataToLines()

protected 
Takes raw data points in plot coordinates as data, and returns a vector containing pixel coordinate points which are suitable for drawing the line style lsLine.
The source of data is usually getOptimizedLineData, and this method is called in getLines if the line style is set accordingly.
 See also
 dataToStepLeftLines, dataToStepRightLines, dataToStepCenterLines, dataToImpulseLines, getLines, drawLinePlot
Definition at line 21340 of file qcustomplot.cpp.
◆ dataToStepCenterLines()

protected 
Takes raw data points in plot coordinates as data, and returns a vector containing pixel coordinate points which are suitable for drawing the line style lsStepCenter.
The source of data is usually getOptimizedLineData, and this method is called in getLines if the line style is set accordingly.
 See also
 dataToLines, dataToStepLeftLines, dataToStepRightLines, dataToImpulseLines, getLines, drawLinePlot
Definition at line 21474 of file qcustomplot.cpp.
◆ dataToStepLeftLines()

protected 
Takes raw data points in plot coordinates as data, and returns a vector containing pixel coordinate points which are suitable for drawing the line style lsStepLeft.
The source of data is usually getOptimizedLineData, and this method is called in getLines if the line style is set accordingly.
 See also
 dataToLines, dataToStepRightLines, dataToStepCenterLines, dataToImpulseLines, getLines, drawLinePlot
Definition at line 21378 of file qcustomplot.cpp.
◆ dataToStepRightLines()

protected 
Takes raw data points in plot coordinates as data, and returns a vector containing pixel coordinate points which are suitable for drawing the line style lsStepRight.
The source of data is usually getOptimizedLineData, and this method is called in getLines if the line style is set accordingly.
 See also
 dataToLines, dataToStepLeftLines, dataToStepCenterLines, dataToImpulseLines, getLines, drawLinePlot
Definition at line 21426 of file qcustomplot.cpp.
◆ draw()

overrideprotectedvirtual 
This function draws the layerable with the specified painter. It is only called by QCustomPlot, if the layerable is visible (setVisible).
Before this function is called, the painter's antialiasing state is set via applyDefaultAntialiasingHint, see the documentation there. Further, the clipping rectangle was set to clipRect.
Implements QCPAbstractPlottable.
Definition at line 21122 of file qcustomplot.cpp.
◆ drawFill()

protectedvirtual 
Draws the fill of the graph using the specified painter, with the currently set brush.
Depending on whether a normal fill or a channel fill (setChannelFillGraph) is needed, getFillPolygon or getChannelFillPolygon are used to find the according fill polygons.
In order to handle NaN Data points correctly (the fill needs to be split into disjoint areas), this method first determines a list of nonNaN segments with getNonNanSegments, on which to operate. In the channel fill case, getOverlappingSegments is used to consolidate the nonNaN segments of the two involved graphs, before passing the overlapping pairs to getChannelFillPolygon.
Pass the points of this graph's line as lines, in pixel coordinates.
 See also
 drawLinePlot, drawImpulsePlot, drawScatterPlot
Definition at line 21585 of file qcustomplot.cpp.
◆ drawImpulsePlot()

protectedvirtual 
Draws impulses from the provided data, i.e. it connects all line pairs in lines, given in pixel coordinates. The lines necessary for impulses are generated by dataToImpulseLines from the regular graph data points.
 See also
 drawLinePlot, drawScatterPlot
Definition at line 21650 of file qcustomplot.cpp.
◆ drawLegendIcon()

overrideprotectedvirtual 
called by QCPLegend::draw (via QCPPlottableLegendItem::draw) to create a graphical representation of this plottable inside rect, next to the plottable name.
The passed painter has its cliprect set to rect, so painting outside of rect won't appear outside the legend icon border.
Implements QCPAbstractPlottable.
Definition at line 21190 of file qcustomplot.cpp.
◆ drawLinePlot()

protectedvirtual 
Draws lines between the points in lines, given in pixel coordinates.
Definition at line 21633 of file qcustomplot.cpp.
◆ drawScatterPlot()

protectedvirtual 
Draws scatter symbols at every point passed in scatters, given in pixel coordinates. The scatters will be drawn with painter and have the appearance as specified in style.
 See also
 drawLinePlot, drawImpulsePlot
Definition at line 21619 of file qcustomplot.cpp.
◆ findIndexAboveX()
Finds the smallest index of data, whose points x value is just above x. Assumes x values in data points are ordered ascending, as is ensured by getLines/ getScatters if the key axis is horizontal.
Used to calculate the channel fill polygon, see getChannelFillPolygon.
Definition at line 22330 of file qcustomplot.cpp.
◆ findIndexAboveY()
Finds the smallest index of data, whose points y value is just above y. Assumes y values in data points are ordered ascending, as is ensured by getLines/ getScatters if the key axis is vertical.
Used to calculate the channel fill polygon, see getChannelFillPolygon.
Definition at line 22376 of file qcustomplot.cpp.
◆ findIndexBelowX()
Finds the highest index of data, whose points x value is just below x. Assumes x values in data points are ordered ascending, as is ensured by getLines/ getScatters if the key axis is horizontal.
Used to calculate the channel fill polygon, see getChannelFillPolygon.
Definition at line 22353 of file qcustomplot.cpp.
◆ findIndexBelowY()
Finds the highest index of data, whose points y value is just below y. Assumes y values in data points are ordered ascending, as is ensured by getLines/ getScatters if the key axis is vertical.
Used to calculate the channel fill polygon, see getChannelFillPolygon.
Definition at line 22458 of file qcustomplot.cpp.
◆ getChannelFillPolygon()

protected 
Returns the polygon needed for drawing (partial) channel fills between this graph and the graph specified by setChannelFillGraph.
The data points of this graph are passed as pixel coordinates via thisData, the data of the other graph as otherData. The returned polygon will be calculated for the specified data segments thisSegment and otherSegment, pertaining to the respective thisData and otherData, respectively.
The passed thisSegment and otherSegment should correspond to the segment pairs returned by getOverlappingSegments, to make sure only segments that actually have key coordinate overlap need to be processed here.
For increased performance due to implicit sharing, keep the returned QPolygonF const.
 See also
 drawFill, getOverlappingSegments, getNonNanSegments
Definition at line 22223 of file qcustomplot.cpp.
◆ getFillBasePoint()
Returns the point which closes the fill polygon on the zerovalueline parallel to the key axis. The logarithmic axis scale case is a bit special, since the zerovalueline in pixel coordinates is in positive or negative infinity. So this case is handled separately by just closing the fill polygon on the axis which lies in the direction towards the zero value.
matchingDataPoint will provide the key (in pixels) of the returned point. Depending on whether the key axis of this graph is horizontal or vertical, matchingDataPoint will provide the x or y value of the returned point, respectively.
Definition at line 22133 of file qcustomplot.cpp.
◆ getFillPolygon()

protected 
Returns the polygon needed for drawing normal fills between this graph and the key axis.
Pass the graph's data points (in pixel coordinates) as lineData, and specify the segment which shall be used for the fill. The collection of lineData points described by segment must not contain NaN data points (see getNonNanSegments).
The returned fill polygon will be closed at the key axis (the zerovalue line) for linear value axes. For logarithmic value axes the polygon will reach just beyond the corresponding axis rect side (see getFillBasePoint).
For increased performance (due to implicit sharing), keep the returned QPolygonF const.
 See also
 drawFill, getNonNanSegments
Definition at line 22192 of file qcustomplot.cpp.
◆ getKeyRange()

overridevirtual 
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 21110 of file qcustomplot.cpp.
◆ getLines()

protected 
This method retrieves an optimized set of data points via getOptimizedLineData, and branches out to the line style specific functions such as dataToLines, dataToStepLeftLines, etc. according to the line style of the graph.
lines will be filled with points in pixel coordinates, that can be drawn with the according draw functions like drawLinePlot and drawImpulsePlot. The points returned in lines aren't necessarily the original data points. For example, step line styles require additional points to form the steps when drawn. If the line style of the graph is lsNone, the lines vector will be empty.
dataRange specifies the beginning and ending data indices that will be taken into account for conversion. In this function, the specified range may exceed the total data bounds without harm: a correspondingly trimmed data range will be used. This takes the burden off the user of this function to check for valid indices in dataRange, e.g. when extending ranges coming from getDataSegments.
 See also
 getScatters
Definition at line 21244 of file qcustomplot.cpp.
◆ getNonNanSegments()

protected 
This method goes through the passed points in lineData and returns a list of the segments which don't contain NaN data points.
keyOrientation defines whether the x or y member of the passed QPointF is used to check for NaN. If keyOrientation is Qt::Horizontal
, the y member is checked, if it is Qt::Vertical
, the x member is checked.
 See also
 getOverlappingSegments, drawFill
Definition at line 21979 of file qcustomplot.cpp.
◆ getOptimizedLineData()

protectedvirtual 
Returns via lineData the data points that need to be visualized for this graph when plotting graph lines, taking into consideration the currently visible axis ranges and, if setAdaptiveSampling is enabled, local point densities. The considered data can be restricted further by begin and end, e.g. to only plot a certain segment of the data (see getDataSegments).
This method is used by getLines to retrieve the basic working set of data.
 See also
 getOptimizedScatterData
Definition at line 21676 of file qcustomplot.cpp.
◆ getOptimizedScatterData()

protectedvirtual 
Returns via scatterData the data points that need to be visualized for this graph when plotting scatter points, taking into consideration the currently visible axis ranges and, if setAdaptiveSampling is enabled, local point densities. The considered data can be restricted further by begin and end, e.g. to only plot a certain segment of the data (see getDataSegments).
This method is used by getScatters to retrieve the basic working set of data.
 See also
 getOptimizedLineData
Definition at line 21768 of file qcustomplot.cpp.
◆ getOverlappingSegments()

protected 
This method takes two segment lists (e.g. created by getNonNanSegments) thisSegments and otherSegments, and their associated point data thisData and otherData.
It returns all pairs of segments (the first from thisSegments, the second from otherSegments), which overlap in plot coordinates.
This method is useful in the case of a channel fill between two graphs, when only those nonNaN segments which actually overlap in their key coordinate shall be considered for drawing a channel fill polygon.
It is assumed that the passed segments in thisSegments are ordered ascending by index, and that the segments don't overlap themselves. The same is assumed for the segments in otherSegments. This is fulfilled when the segments are obtained via getNonNanSegments.
Definition at line 22037 of file qcustomplot.cpp.
◆ getScatters()

protected 
This method retrieves an optimized set of data points via getOptimizedScatterData and then converts them to pixel coordinates. The resulting points are returned in scatters, and can be passed to drawScatterPlot.
dataRange specifies the beginning and ending data indices that will be taken into account for conversion. In this function, the specified range may exceed the total data bounds without harm: a correspondingly trimmed data range will be used. This takes the burden off the user of this function to check for valid indices in dataRange, e.g. when extending ranges coming from getDataSegments.
Definition at line 21285 of file qcustomplot.cpp.
◆ getValueRange()

overridevirtual 
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 21116 of file qcustomplot.cpp.
◆ getVisibleDataBounds()

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 21949 of file qcustomplot.cpp.
◆ lineStyle()

inline 
Definition at line 5467 of file qcustomplot.h.
◆ pointDistance()

protected 
Calculates the minimum distance in pixels the graph's representation has from the given pixelPoint. This is used to determine whether the graph was clicked or not, e.g. in selectTest. The closest data point to pixelPoint is returned in closestData. Note that if the graph has a line representation, the returned distance may be smaller than the distance to the closestData point, since the distance to the graph line is also taken into account.
If either the graph has no data or if the line style is lsNone and the scatter style's shape is QCPScatterStyle::ssNone (i.e. there is no visual representation of the graph), returns 1.0.
Definition at line 22402 of file qcustomplot.cpp.
◆ scatterSkip()

inline 
Definition at line 5469 of file qcustomplot.h.
◆ scatterStyle()

inline 
Definition at line 5468 of file qcustomplot.h.
◆ segmentsIntersect()

protected 
Returns whether the segments defined by the coordinates (aLower, aUpper) and (bLower, bUpper) have overlap.
The output parameter bPrecedence indicates whether the b segment reaches farther than the a segment or not. If bPrecedence returns 1, segment b reaches the farthest to higher coordinates (i.e. bUpper > aUpper). If it returns 1, segment a reaches the farthest. Only if both segment's upper bounds are identical, 0 is returned as bPrecedence.
It is assumed that the lower bounds always have smaller or equal values than the upper bounds.
 See also
 getOverlappingSegments
Definition at line 22100 of file qcustomplot.cpp.
◆ selectTest()

overridevirtual 
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
Reimplemented from QCPAbstractPlottable1D< QCPGraphData >.
Definition at line 21088 of file qcustomplot.cpp.
◆ setAdaptiveSampling()
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 pergraph basis. So leaving adaptive sampling enabled has no disadvantage in almost all cases.
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.
Care must be taken when using highdensity 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, nonadaptivesampling 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 21032 of file qcustomplot.cpp.
◆ setChannelFillGraph()
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 zerovalueline will be shown. To disable any filling, set the brush to Qt::NoBrush.
 See also
 setBrush
Definition at line 20981 of file qcustomplot.cpp.
◆ setData() [1/2]
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 20928 of file qcustomplot.cpp.
◆ setData() [2/2]
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 20912 of file qcustomplot.cpp.
◆ setLineStyle()
void QCPGraph::setLineStyle  (  LineStyle  ls  ) 
Sets how the single data points are connected in the plot. For scatteronly plots, set ls to lsNone and setScatterStyle to the desired scatter style.
 See also
 setScatterStyle
Definition at line 20940 of file qcustomplot.cpp.
◆ 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 20967 of file qcustomplot.cpp.
◆ setScatterStyle()
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 lineonlyplots with appropriate line style).
 See also
 QCPScatterStyle, setLineStyle
Definition at line 20951 of file qcustomplot.cpp.
Member Data Documentation
◆ mAdaptiveSampling

protected 
Definition at line 5497 of file qcustomplot.h.
◆ mChannelFillGraph
Definition at line 5496 of file qcustomplot.h.
◆ mLineStyle

protected 
Definition at line 5493 of file qcustomplot.h.
◆ mScatterSkip

protected 
Definition at line 5495 of file qcustomplot.h.
◆ mScatterStyle

protected 
Definition at line 5494 of file qcustomplot.h.
The documentation for this class was generated from the following files:
Documentation copyright © 19962024 The KDE developers.
Generated on Fri Jun 14 2024 11:55:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 19972006
KDE's Doxygen guidelines are available online.