diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index 000a739..00408c5 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -804,8 +804,7 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa logio->CloseWave(index); delete logio; - - float vmax = (float)_wave.TimeSamples; + float vmax = 0;//(float)_wave.TimeSamples; float vmin = 0; // double** wavedata; @@ -825,8 +824,8 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa continue; } // -// if(vmaxval)vmin=val; + if(vmaxval)vmin=val; } } delete[] value; @@ -867,8 +866,13 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa { // colorMap->data()->cellToCoord(xIndex, yIndex, &x, &y); // double r = 3*qSqrt(x*x+y*y)+1e-2; -// z = 2*x*(qCos(r+2)/r-qSin(r+2)/r); // the B field strength of dipole radiation (modulo physical constants) - colorMap->data()->setCell(xIndex, yIndex, wavedata[yIndex][xIndex]); +// z = 2*x*(qCos(r+2)/r-qSin(r+2)/r); // the B field strength of dipole radiation (modulo physical constants); + + if(wavedata[yIndex][xIndex]==-9999) + { + continue; + } + colorMap->data()->setCell(xIndex, yIndex, wavedata[yIndex][xIndex]); } } @@ -916,7 +920,7 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa double width=2; QString strScaleType = ""; //道-对象 - m_formTrack->Add(strSlfName, m_strWellName, m_strTrackName, strWaveName, strAliasName, strUnit, newlineColor, width, vmax, vmin, strScaleType, "waveObject"); + m_formTrack->Add(strSlfName, m_strWellName, m_strTrackName, strWaveName, strAliasName, strUnit, newlineColor, width, _wave.TimeSamples, 0, strScaleType, "waveObject"); }