MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / drawScatterPlot

Method drawScatterPlot

qcustomplot.cpp:20849–20855  ·  view source on GitHub ↗

! \internal Draws scatter symbols at every point passed in \a scatters, given in pixel coordinates. The scatters will be drawn with \a painter and have the appearance as specified in \a style. \see drawLinePlot, drawImpulsePlot */

Source from the content-addressed store, hash-verified

20847 \see drawLinePlot, drawImpulsePlot
20848*/
20849void QCPGraph::drawScatterPlot(QCPPainter *painter, const QVector<QPointF> &scatters, const QCPScatterStyle &style) const
20850{
20851 applyScattersAntialiasingHint(painter);
20852 style.applyTo(painter, mPen);
20853 for (int i=0; i<scatters.size(); ++i)
20854 style.drawShape(painter, scatters.at(i).x(), scatters.at(i).y());
20855}
20856
20857/*! \internal
20858

Callers

nothing calls this directly

Calls 4

applyToMethod · 0.80
drawShapeMethod · 0.80
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected