From ea483ee51b84f81ccc4819ded09c5c518a938598 Mon Sep 17 00:00:00 2001 From: mca-sh Date: Thu, 7 Mar 2024 08:23:24 +0100 Subject: [PATCH] in mapping tools, prevent the tagging of reference point when out of channel close up x-limits --- MASH-FRET/.release_version.json | 2 +- .../coordinates/mapping_tool/updatePnts.m | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MASH-FRET/.release_version.json b/MASH-FRET/.release_version.json index 4b8e9931..86a401fb 100644 --- a/MASH-FRET/.release_version.json +++ b/MASH-FRET/.release_version.json @@ -1,4 +1,4 @@ { "tag" : "1.3.3.3", -"prev_commit_hash" : "fd17e646" +"prev_commit_hash" : "2daa9632" } diff --git a/MASH-FRET/source/mod-video-processing/coordinates/mapping_tool/updatePnts.m b/MASH-FRET/source/mod-video-processing/coordinates/mapping_tool/updatePnts.m index 3f3f6e43..a0f3bcb6 100644 --- a/MASH-FRET/source/mod-video-processing/coordinates/mapping_tool/updatePnts.m +++ b/MASH-FRET/source/mod-video-processing/coordinates/mapping_tool/updatePnts.m @@ -55,9 +55,11 @@ function updatePnts(h_fig) for c = 1:nChan q.txt{c} = []; q.txtFull{c} = []; + x_lim = get(q.axes_top(c), 'XLim'); y_lim = get(q.axes_top(c), 'YLim'); for n = 1:size(pntCoord{c},1) - if pntCoord{c}(n,2)>y_lim(1) && pntCoord{c}(n,2)y_lim(1) && pntCoord{c}(n,2)x_lim(1) && pntCoord{c}(n,1)