! 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
| 20877 | To directly create a graph inside a plot, you can also use the simpler QCustomPlot::addGraph function. |
| 20878 | */ |
| 20879 | QCPGraph::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 | |
| 20897 | QCPGraph::~QCPGraph() |
| 20898 | { |
nothing calls this directly
no test coverage detected