naj1024 / pyspectrum

Python based spectrum analyser with web UI and sdr input
MIT License
23 stars 5 forks source link

Edit spectrum not work #9

Closed Lucstay11 closed 1 year ago

Lucstay11 commented 1 year ago

For some unexplained reason, None of these changes affect the default spectrum color...

Spectrum.js under src/webUI/webroot has

// Colours
this.colourIndex = 0;
this.colourMap = colourMaps[this.colourIndex]; // map for spectrogram only

alternatively in colourmap.js reorder the map to give your prefered one at index zero.
var colourMaps = [binary, binary_inverse, turbo, fosphor, viridis, inferno, magma, jet];

And how could I do to activate by default the grad option at the launch of the spectrum?

naj1024 commented 1 year ago

Think your browser cache needs a refresh.

// Colours
this.colourIndex = 3;
this.spectrumGradient = true;

Above two changes worked for me.

Lucstay11 commented 1 year ago

It work! Yes the Chrome browser cache not clearing all the time. Thanks

naj1024 commented 1 year ago

your welcome