Skip to content

Commit deead10

Browse files
committed
Fix shift value in plots
1 parent c20a649 commit deead10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ratapi/utils/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _extract_plot_data(event_data: PlotEventData, q4: bool, show_error_bar: bool
5353
zip(event_data.reflectivity, event_data.shiftedData, event_data.sldProfiles, strict=False)
5454
):
5555
# Calculate the divisor
56-
div = 1 if i == 0 and not q4 else 10 ** ((i / 100) * shift_value)
56+
div = 1 if i == 0 and not q4 else 10 ** ((i + 1) / 100 * shift_value)
5757
q4_data = 1 if not q4 or not event_data.dataPresent[i] else data[:, 0] ** 4
5858
mult = q4_data / div
5959

@@ -148,7 +148,7 @@ def plot_ref_sld_helper(
148148
fig.clf()
149149
fig.subplots(1, 2)
150150

151-
fig.subplots_adjust(wspace=0.3)
151+
fig.subplots_adjust(wspace=0.3, hspace=0)
152152

153153
ref_plot: plt.Axes = fig.axes[0]
154154
sld_plot: plt.Axes = fig.axes[1]

0 commit comments

Comments
 (0)