Skip to content

Commit 2a798be

Browse files
committed
Resolved issue of limit drawing psd value
1 parent 02b9527 commit 2a798be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ GraphSpectrumPlot._drawHeatMap = function (drawPSD = false) {
501501
if (drawPSD) {
502502
const min = -40, max = 10; //limit values dBm
503503
valuePlot = Math.max(this._fftData.fftOutput[j][i], min);
504-
valuePlot = Math.min(this._fftData.fftOutput[j][i], max);
504+
valuePlot = Math.min(valuePlot, max);
505505
valuePlot = Math.round((valuePlot - min) * 100 / (max - min));
506506
} else {
507507
valuePlot = Math.round(

0 commit comments

Comments
 (0)