! Constructs a bar chart 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 QCPBa
| 24441 | but use QCustomPlot::removePlottable() instead. |
| 24442 | */ |
| 24443 | QCPBars::QCPBars(QCPAxis *keyAxis, QCPAxis *valueAxis) : |
| 24444 | QCPAbstractPlottable1D<QCPBarsData>(keyAxis, valueAxis), |
| 24445 | mWidth(0.75), |
| 24446 | mWidthType(wtPlotCoords), |
| 24447 | mBarsGroup(nullptr), |
| 24448 | mBaseValue(0), |
| 24449 | mStackingGap(1) |
| 24450 | { |
| 24451 | // modify inherited properties from abstract plottable: |
| 24452 | mPen.setColor(Qt::blue); |
| 24453 | mPen.setStyle(Qt::SolidLine); |
| 24454 | mBrush.setColor(QColor(40, 50, 255, 30)); |
| 24455 | mBrush.setStyle(Qt::SolidPattern); |
| 24456 | mSelectionDecorator->setBrush(QBrush(QColor(160, 160, 255))); |
| 24457 | } |
| 24458 | |
| 24459 | QCPBars::~QCPBars() |
| 24460 | { |