Skip to content

Commit 457174e

Browse files
committed
fix inversion of x and y
1 parent 67530f8 commit 457174e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cardiotensor/orientation/orientation_computation_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ def plot_images(
546546
if colormap_FA is None:
547547
colormap_FA = plt.cm.magma
548548

549-
yx = (int(center_point[1]), int(center_point[2]))
550-
549+
x, y = center_point[0:2]
550+
551551
fig, ax = plt.subplots(2, 2, figsize=(10, 9))
552552
ax[0, 0].imshow(img, cmap="gray")
553-
ax[0, 0].plot([yx[1]], [yx[0]], "r.", ms=6)
553+
ax[0, 0].plot(x, y, "r.", ms=6)
554554
ax[0, 0].set_title("Source")
555555
ax[0, 0].axis("off")
556556

0 commit comments

Comments
 (0)