We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e31241 + ffa22d6 commit 758c9d2Copy full SHA for 758c9d2
napari_crop/_function.py
@@ -278,8 +278,8 @@ def draw_fixed_shapes(
278
# Insert extra coordinates for higher dimensions
279
# For example, if the shape is 3D, we need to add the z-coordinates
280
extra_coords = np.take(coord, indices=dims_order[:-2], axis=0)
281
- for i, ec in enumerate(extra_coords):
282
- shape_data = np.insert(shape_data, 0, round(ec), axis=-1)
+ for ec in extra_coords:
+ shape_data = np.insert(shape_data, -2, round(ec), axis=-1)
283
shape_data = shape_data[:, np.argsort(dims_order)]
284
shapes_data.append(shape_data)
285
0 commit comments