analogdevicesinc / iio-oscilloscope

A GTK+ based oscilloscope application for interfacing with various IIO devices
https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope
GNU General Public License v2.0
255 stars 144 forks source link

Spectrum shows unusable grid #75

Open UweBonnes opened 6 years ago

UweBonnes commented 6 years ago

Hello,

the spectrum analyzer shows an invalid grid:

spectrum

rgetz commented 6 years ago

Uwe:

Thanks for reporting - the default gtkdatabox grid makes the grids even across the screen, and users were complaining that the grids didn't match up with the tick marks on the axis.

I tried to do something that matched with the tick marks, but - yes - it doesn't work very well in many of the use cases. There isn't a way in gtkdatabox to find the major tick marks on the rulers, so you need to guess (or copy their code, and do the same algorithm). I decided to guess, and I should have spent more time on this....

For now, I just turn the grid off when it doesn't look good (which is many times on some of the newer devices).