diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index 87e20dd..db84829 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -256,14 +256,14 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo) { case 0: // 偏左 - curv->m_yAxis3->setTickLabelPadding(5 + 10); + curv->m_yAxis3->setTickLabelPadding(5); break; case 1: // 居中 - curv->m_yAxis3->setTickLabelPadding(30 + 10); + curv->m_yAxis3->setTickLabelPadding(30); break; case 2: - curv->m_yAxis3->setTickLabelPadding(50 + 10); + curv->m_yAxis3->setTickLabelPadding(50); break; } // 海拔垂深位置 @@ -271,14 +271,14 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo) { case 0: // 偏左 - curv->m_yAxis2->setTickLabelPadding(5 + 10); + curv->m_yAxis2->setTickLabelPadding(5); break; case 1: // 居中 curv->m_yAxis2->setTickLabelPadding(30); break; case 2: - curv->m_yAxis2->setTickLabelPadding(50 + 10); + curv->m_yAxis2->setTickLabelPadding(50); break; } // 主刻度线长度 diff --git a/logPlus/qmycustomplot.h b/logPlus/qmycustomplot.h index fa6bfdd..8407bb3 100644 --- a/logPlus/qmycustomplot.h +++ b/logPlus/qmycustomplot.h @@ -310,7 +310,7 @@ public slots: public: void init(QString strName, QVector x, QVector y); - //岩心照片 + // 岩心照片 void addImageToPlot(double left_Low, double right_Hight, const QString imagePath); void addImageToPlot(double left_Low, double right_Hight, const QString imagePath, double left, double width); // left_Low底, right_Hight高 imagePath图片 left左边距 width宽 mBorderColor边框颜色、 mBorderStyle边框样式 mBorderWidth边框宽