Closed zaharko closed 1 year ago
There is a problem with the logarithmic color mapping, namely, it can't include 0 values in data as it refers to -infinity on the axis. Unfortunately, the 2D detector data almost always includes 0 values (as background). Thus, we can't include it as it is.
There are a few workaround possibilities, but none of them are perfect. In fact, many argue that count data should not be log-transformed: https://www.nature.com/articles/npre.2010.4136.1
I'll hold this change for now.
Hi Ivan,
Could we change zeroes into the small number C for which log can be taken and plot the data shifted by C? This might be strictly speaking not the correct solution, but it will serve the purpose to see a weak signal on top of a significant background.
Thank you Oksana
On 15 Feb 2023, at 16:07, Ivan Usov @.**@.>> wrote:
There is a problem with the logarithmic color mapping, namely, it can't include 0 values in data as it refers to -infinity on the axis. Unfortunately, the 2D detector data almost always includes 0 values (as background). Thus, we can't include it as it is.
There are a few workaround possibilities, but none of them are perfect. In fact, many argue that count data should not be log-transformed: https://www.nature.com/articles/npre.2010.4136.1
I'll hold this change for now.
— Reply to this email directly, view it on GitHubhttps://github.com/paulscherrerinstitute/pyzebra/issues/51#issuecomment-1431518119, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBMFVGHQI5JTDYC6FHEBHLWXTWM5ANCNFSM6AAAAAAU3WTVTQ. You are receiving this because you authored the thread.Message ID: @.***>