From 50c0be6684dc642b08e459f54534a3cf940056ae Mon Sep 17 00:00:00 2001 From: "DESKTOP-450PEFP\\mainc" Date: Thu, 9 Apr 2026 09:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=BD=91=E6=A0=BC=EF=BC=8C?= =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E5=B1=9E=E6=80=A7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 5 +++-- logPlus/qmycustomplot.cpp | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index f1d0b2f..72ede78 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -5952,7 +5952,8 @@ void FormDraw::initDepth(QMyCustomPlot *curv) { // x轴隐藏 curv->yAxis->setTicks(true); - curv->yAxis->setTickLabels(true); + curv->yAxis2->setVisible(false); + //curv->yAxis->setTickLabels(true); curv->yAxis->setTickLabelSide(QCPAxis::lsInside); QFont font1("微软雅黑", 8); @@ -5960,7 +5961,7 @@ void FormDraw::initDepth(QMyCustomPlot *curv) curv->yAxis->setRange(m_iY1, m_iY2); //curv->yAxis->setRangeReversed(true); - curv->axisRect()->setupFullAxesBox(); + //curv->axisRect()->setupFullAxesBox(); curv->yAxis->ticker()->setTickCount(60);//y个主刻度 curv->m_bX2Y = false; } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 273ffc6..393b61a 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -74,6 +74,9 @@ QMyCustomPlot::QMyCustomPlot(QWidget *parent, QString strSlfName, QString strWel xAxis2->setTickLabels(false); xAxis2->setTickLabels(false); + xAxis->grid()->setVisible(false); + yAxis->grid()->setVisible(false); + //套管组件 zoneOrder_Tubing.clear(); if(zoneOrder_Tubing.size()==0)