Skip to content

Commit 51acce9

Browse files
authored
Merge pull request #1018 from joshitha1808/GH648-fix-h12-calibration-axis-flip
fix: prevent axis flipping in plot_h12_calibration by adding bounds
2 parents b3805b9 + f73157f commit 51acce9

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)