Skip to content

Commit

Permalink
in mapping tools, prevent the tagging of reference point when out of …
Browse files Browse the repository at this point in the history
…channel close up x-limits
  • Loading branch information
mca-sh committed Mar 7, 2024
1 parent 2daa963 commit ea483ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MASH-FRET/.release_version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tag" : "1.3.3.3",
"prev_commit_hash" : "fd17e646"
"prev_commit_hash" : "2daa9632"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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(2)
if pntCoord{c}(n,2)>y_lim(1) && pntCoord{c}(n,2)<y_lim(2) && ...
pntCoord{c}(n,1)>x_lim(1) && pntCoord{c}(n,1)<x_lim(2)
q.txt{c}(size(q.txt{c},1)+1,1) = text('Parent', ...
q.axes_top(c), 'String', num2str(pntCoord{c}(n,3)), ...
'FontUnits', 'points', 'FontSize', 7, 'FontWeight', ...
Expand Down

0 comments on commit ea483ee

Please sign in to comment.