Skip to content

Commit 6d711b7

Browse files
authored
Merge pull request #910 from Tanisha127/fix-fst-y-range-721
fix: use min_clip parameter for y-axis lower bound in plot_fst_gwss_track
2 parents 147329a + 67c23e6 commit 6d711b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/fst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def plot_fst_gwss_track(
235235
height=height,
236236
toolbar_location="above",
237237
x_range=x_range,
238-
y_range=(0, 1),
238+
y_range=(clip_min, 1),
239239
output_backend=output_backend,
240240
)
241241

@@ -252,7 +252,7 @@ def plot_fst_gwss_track(
252252

253253
# tidy up the plot
254254
fig.yaxis.axis_label = "Fst"
255-
fig.yaxis.ticker = [0, 1]
255+
fig.yaxis.ticker = sorted(set([clip_min, 0, 1]))
256256
self._bokeh_style_genome_xaxis(fig, contig)
257257

258258
if show: # pragma: no cover

0 commit comments

Comments
 (0)