@@ -61,7 +61,8 @@ function sliceClickCallback(im, keydata)
6161 clickY = round(keydata .IntersectionPoint(2 ));
6262
6363 ud .pointList(end + 1 , : ) = [clickX , ud .ref_size(1 ) - clickY ];
64- ud .pointHands(end + 1 ) = plot(ud .sliceAx , clickX , clickY , ' ro' , ' color' , [0 .5 0 ],' linewidth' ,2 ,' markers' ,4 );
64+ set(ud .pointHands ,' Color' ,[.7 .3 .3 ])
65+ ud .pointHands(end + 1 ) = plot(ud .sliceAx , clickX , clickY , ' o' , ' color' , [0 .9 0 ],' linewidth' ,2 ,' markers' ,4 );
6566
6667 if clickX < 100 && (ud .ref_size(1 ) - clickY ) < 100 % if click in corner, break
6768 ud.pointList = [];
@@ -134,6 +135,7 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
134135
135136
136137function ud = updateSliceImage(ud )
138+ % TODO occasionally pointList has more items than pointHands
137139
138140 title_ending = ' ' ;
139141
@@ -169,6 +171,8 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
169171 for i = 1 : size(ud .pointList ,1 )
170172 ud .pointHands(end + 1 ) = plot(ud .sliceAx , ud .pointList(i ,1 ), ud .ref_size(1 ) - ud .pointList(i ,2 ), ' ro' , ' color' , [0 .5 0 ],' linewidth' ,2 ,' markers' ,4 );
171173 end
174+ set(ud .pointHands(end ),' color' , [0 .9 0 ]);
175+
172176 title_ending = ' (transform points loaded)' ;
173177 end
174178 end
0 commit comments