Skip to content

Commit 1503fe7

Browse files
committed
fix: do not clip data for stat test
1 parent 9fa990d commit 1503fe7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chromrings/plot/0_plot_dataset.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,23 +272,24 @@ def clip_dist_perc_above_100(group):
272272
if USE_ABSOLUTE_DIST:
273273
xx_plot = data_agg.index
274274
yy_plot = data_agg.values
275+
xx_plot_clip = xx_plot
275276
else:
276277
# Plot at center of bin --> move left by x_bin_size/2
277278
xx_plot = data_agg.index.to_numpy()-x_bin_size/2
278279
clip_100perc_mask = np.logical_and(xx_plot<=100, xx_plot>=-100)
279-
xx_plot = xx_plot[clip_100perc_mask]
280+
xx_plot_clip = xx_plot[clip_100perc_mask]
280281
yy_plot = data_agg.to_numpy()[clip_100perc_mask]
281282
data_y_low = data_y_low[clip_100perc_mask]
282283
data_y_high = data_y_high[clip_100perc_mask]
283284

284285
axis.plot(
285-
xx_plot, yy_plot,
286+
xx_plot_clip, yy_plot,
286287
color=color,
287288
label=exp_folder,
288289
linestyle=linestyle
289290
)
290291
axis.fill_between(
291-
xx_plot,
292+
xx_plot_clip,
292293
data_y_low,
293294
data_y_high,
294295
color=color,

0 commit comments

Comments
 (0)