Tweak log-scaler for more detail

only_draw_iv_for_ohlc
Tyler Goodlet 2022-04-07 14:20:19 -04:00
parent ba6ecbbba2
commit f52367c19d
1 changed files with 2 additions and 1 deletions

View File

@ -260,12 +260,13 @@ def ds_m4(
if log_scale: if log_scale:
assert uppx, 'You must provide a `uppx` value to use log scaling!' assert uppx, 'You must provide a `uppx` value to use log scaling!'
# scaler = 2**7 / (1 + math.log(uppx, 2))
scaler = round( scaler = round(
max( max(
# NOTE: found that a 16x px width brought greater # NOTE: found that a 16x px width brought greater
# detail, likely due to dpi scaling? # detail, likely due to dpi scaling?
# px_width=px_width * 16, # px_width=px_width * 16,
2**6 / (1 + math.log(uppx, 2)), 2**7 / (1 + math.log(uppx, 2)),
1 1
) )
) )