Skip to content

Commit e8e9e29

Browse files
Forgot the boundary case!
1 parent dfa47bf commit e8e9e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

velociraptor/autoplotter/lines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ def highlight_data_outside_domain(
343343
# Split data into three categories (along X axis)
344344
below_x_range = x < x_lim[0]
345345
above_x_range = x > x_lim[1]
346-
within_x_range = logical_and(x > x_lim[0], x < x_lim[1])
346+
within_x_range = logical_and(x >= x_lim[0], x <= x_lim[1])
347347

348348
# Split data into three categories (along Y axis)
349349
below_y_range = y < y_lim[0]
350350
above_y_range = y > y_lim[1]
351-
within_y_range = logical_and(y > y_lim[0], y < y_lim[1])
351+
within_y_range = logical_and(y >= y_lim[0], y <= y_lim[1])
352352

353353
# First, find all data points that are outside the Y-axis range and within
354354
# X-axis range

0 commit comments

Comments
 (0)