cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 26 forks source link

Go back in time and display traces #3290

Closed lpatiny closed 4 days ago

lpatiny commented 5 days ago

In ethyl crotonate if we go back in time and we move the cursor on the spectrum we don't see the traces

Image

hamed-musallam commented 4 days ago

the traces exist, it seems there is an issue in slicing the data Image

hamed-musallam commented 4 days ago

the issue comes from the min/max for x and y are wrong in this sample

{
maxX: 1.590024000000082,
maxY: 98555,
maxZ: 43910,
minX: 8,
minY: 3,
minZ: -34125,
noise: 243,
} 
jobo322 commented 4 days ago

seems to me the problem is not in the minMax object, if you check is the picture when you go back to apodization, nmrium should use the axis scale for the FID but it keep the axis for the FFT. do you know what I mean, it is the reason seem stop me the you only see this small FID as the trace