MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / QCPGraph

Method QCPGraph

qcustomplot/qcustomplot.cpp:20108–20121  ·  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

20106 To directly create a graph inside a plot, you can also use the simpler QCustomPlot::addGraph function.
20107*/
20108QCPGraph::QCPGraph(QCPAxis *keyAxis, QCPAxis *valueAxis) :
20109 QCPAbstractPlottable1D<QCPGraphData>(keyAxis, valueAxis)
20110{
20111 // special handling for QCPGraphs to maintain the simple graph interface:
20112 mParentPlot->registerGraph(this);
20113
20114 setPen(QPen(Qt::blue, 0));
20115 setBrush(Qt::NoBrush);
20116
20117 setLineStyle(lsLine);
20118 setScatterSkip(0);
20119 setChannelFillGraph(0);
20120 setAdaptiveSampling(true);
20121}
20122
20123QCPGraph::~QCPGraph()
20124{

Callers

nothing calls this directly

Calls 1

registerGraphMethod · 0.80

Tested by

no test coverage detected