diff options
-rw-r--r-- | gui_win.m | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -131,6 +131,8 @@ axes(handles.image2display); imagesc(image_display); % we need specific aspect ratio for images for them not to be stretched set(handles.image2display,'PlotBoxAspectRatio',[Nx Ny 1],'DataAspectRatio',[1 1 1]); +%colorbar; +%colormap hot; drawnow; % display cross lines if needed @@ -145,6 +147,8 @@ global image_display; [Ny, Nx] = size(image_display); if any( isnan(cross_coordinates) ) % cross coordinates are undefined no need to draw cross + axes(handles.image2display); + hold off; else x0=cross_coordinates(1); y0=cross_coordinates(2); @@ -159,6 +163,7 @@ else hold on; plot(hline_x, hline_y, 'LineWidth', cross_line_width, 'Color', cross_color); plot(vline_x, vline_y, 'LineWidth', cross_line_width, 'Color', cross_color); + hold off; end |