MCPcopy Create free account
hub / github.com/cutechess/cutechess / QCPGraph

Method QCPGraph

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:20879–20895  ·  view source on GitHub ↗

! Constructs a graph which uses \a keyAxis as its key axis ("x") and \a valueAxis as its value axis ("y"). \a keyAxis and \a 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

Source from the content-addressed store, hash-verified

20877 To directly create a graph inside a plot, you can also use the simpler QCustomPlot::addGraph function.
20878*/
20879QCPGraph::QCPGraph(QCPAxis *keyAxis, QCPAxis *valueAxis) :
20880 QCPAbstractPlottable1D<QCPGraphData>(keyAxis, valueAxis),
20881 mLineStyle{},
20882 mScatterSkip{},
20883 mAdaptiveSampling{}
20884{
20885 // special handling for QCPGraphs to maintain the simple graph interface:
20886 mParentPlot->registerGraph(this);
20887
20888 setPen(QPen(Qt::blue, 0));
20889 setBrush(Qt::NoBrush);
20890
20891 setLineStyle(lsLine);
20892 setScatterSkip(0);
20893 setChannelFillGraph(nullptr);
20894 setAdaptiveSampling(true);
20895}
20896
20897QCPGraph::~QCPGraph()
20898{

Callers

nothing calls this directly

Calls 1

registerGraphMethod · 0.80

Tested by

no test coverage detected