diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index a5d8431..b430a31 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -5959,9 +5959,9 @@ void FormDraw::initDepth(QMyCustomPlot *curv) curv->axisRect()->addAxis(QCPAxis::atLeft, curv->m_yAxis2); curv->m_yAxis2->setRange(0, 100); curv->m_yAxis2->setOffset(40); - curv->m_yAxis2->setTickLabelPadding(10); curv->m_yAxis2->ticker()->setTickCount(60); curv->m_yAxis2->setTickLabelPadding(5); + curv->m_yAxis2->setTickLabelFont(font1); } if(!curv->m_yAxis3) { @@ -5969,9 +5969,9 @@ void FormDraw::initDepth(QMyCustomPlot *curv) curv->axisRect()->addAxis(QCPAxis::atLeft, curv->m_yAxis3); curv->m_yAxis3->setRange(0, 100); curv->m_yAxis3->setOffset(40); - curv->m_yAxis3->setTickLabelPadding(10); curv->m_yAxis3->ticker()->setTickCount(60); curv->m_yAxis3->setTickLabelPadding(5); + curv->m_yAxis3->setTickLabelFont(font1); } } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 1ab30ad..10d2ae4 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -5374,11 +5374,15 @@ void QMyCustomPlot::s_changeDepthProperty(QVariantList vlist) { QFont newFont = varVal.value(); this->yAxis->setTickLabelFont(newFont); + this->m_yAxis2->setTickLabelFont(newFont); + this->m_yAxis3->setTickLabelFont(newFont); } else if ("旋转(°)" == strProperty) { double temp = varVal.toDouble(); this->yAxis->setTickLabelRotation(temp); + this->m_yAxis2->setTickLabelRotation(temp); + this->m_yAxis3->setTickLabelRotation(temp); } else if ("斜深" == strProperty) {