131 QPainter painter(
this);
132 painter.fillRect(t_qPointTopLeft.x(), t_qPointTopLeft.y(), t_qSizePlot.width(), t_qSizePlot.height(), Qt::white);
135 painter.drawRect(t_qPointTopLeft.x() - 1, t_qPointTopLeft.y() - 1, t_qSizePlot.width() + 1, t_qSizePlot.height() + 1);
140 pen.setBrush(Qt::blue);
144 const double scale_x = t_qSizePlot.width() / rangeX;
145 const double scale_y = 0.9 * t_qSizePlot.height() / rangeY;
146 const double bottom = t_qPointTopLeft.y() + 0.95 * t_qSizePlot.height();
148 for (qsizetype k = 1; k < path.size(); ++k) {
149 painter.drawLine(QPointF(t_qPointTopLeft.x() + (path[k - 1].x() -
m_dMinX) * scale_x, bottom - (path[k - 1].y() -
m_dMinY) * scale_y),
150 QPointF(t_qPointTopLeft.x() + (path[k].x() -
m_dMinX) * scale_x, bottom - (path[k].y() -
m_dMinY) * scale_y));