Skip to content

Commit ed2cab0

Browse files
committed
Fix x-axis range in h12 plot to use min and max of window sizes
1 parent 3b4722f commit ed2cab0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

malariagen_data/anoph/h12.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ def plot_h12_calibration(
184184
# Make plot.
185185
if title is None:
186186
title = sample_query
187+
x_start = min(window_sizes)
188+
x_end = max(window_sizes)
187189
fig = bokeh.plotting.figure(
188190
title=title,
189191
width=700,
190192
height=400,
191193
x_axis_type="log",
192-
x_range=bokeh.models.Range1d(window_sizes[0], window_sizes[-1]),
194+
x_range=bokeh.models.Range1d(x_start, x_end, bounds=(x_start, x_end)),
193195
)
194196
patch_x = list(window_sizes) + list(window_sizes[::-1])
195197
fig.patch(

0 commit comments

Comments
 (0)