From 62d08eaf85a76b3e6f6a3a7eef7852082abc8688 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 7 Apr 2022 14:20:19 -0400 Subject: [PATCH] Tweak log-scaler for more detail --- piker/ui/_compression.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/ui/_compression.py b/piker/ui/_compression.py index cdc8bb2e..986bc7db 100644 --- a/piker/ui/_compression.py +++ b/piker/ui/_compression.py @@ -260,12 +260,13 @@ def ds_m4( if log_scale: assert uppx, 'You must provide a `uppx` value to use log scaling!' + # scaler = 2**7 / (1 + math.log(uppx, 2)) scaler = round( max( # NOTE: found that a 16x px width brought greater # detail, likely due to dpi scaling? # px_width=px_width * 16, - 2**6 / (1 + math.log(uppx, 2)), + 2**7 / (1 + math.log(uppx, 2)), 1 ) )