MCPcopy Create free account
hub / github.com/LUX-Core/lux / drawScatterPlot

Method drawScatterPlot

src/qt/qcustomplot.cpp:20794–20800  ·  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

20792 \see drawLinePlot, drawImpulsePlot
20793*/
20794void QCPGraph::drawScatterPlot(QCPPainter *painter, const QVector<QPointF> &scatters, const QCPScatterStyle &style) const
20795{
20796 applyScattersAntialiasingHint(painter);
20797 style.applyTo(painter, mPen);
20798 for (int i=0; i<scatters.size(); ++i)
20799 style.drawShape(painter, scatters.at(i).x(), scatters.at(i).y());
20800}
20801
20802/*! \internal
20803

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected