Skip to content

Commit 46e32c4

Browse files
committed
Fixes scaling on bayes plots
1 parent d6c44ce commit 46e32c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ratapi/utils/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def plot_ref_sld_helper(
167167
# Plot confidence intervals if required
168168
if confidence_intervals is not None:
169169
# Calculate the divisor
170-
div = 1 if i == 0 and not q4 else 2 ** (4 * (i + 1))
170+
div = 1 if i == 0 and not q4 else 10 ** ((i / 100) * shift_value)
171171
ref_min, ref_max = confidence_intervals["reflectivity"][i]
172172
mult = (1 if not q4 else plot_data["ref"][i][0] ** 4) / div
173173
ref_plot.fill_between(plot_data["ref"][i][0], ref_min * mult, ref_max * mult, alpha=0.6, color="grey")

0 commit comments

Comments
 (0)