Skip to content
Snippets Groups Projects
Commit d27cf87e authored by Laura Nervo's avatar Laura Nervo
Browse files

gtShowFsim : fixed bug with hiding/showing legend and colorbar position


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>
parent f6bd624b
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ end % end of function
%% sub-functions
%
function choosemap(hObj,event,markers,u,v,om,ha, leg) %#ok<INUSD>
function choosemap(hObj,event,markers,u,v,om,ha,leg) %#ok<INUSD>
% Called when user activates popup menu
val = get(hObj,'Value');
......@@ -211,13 +211,17 @@ function choosemap(hObj,event,markers,u,v,om,ha, leg) %#ok<INUSD>
colormap(uv_ax, cmap)
hc = colorbar('peer', uv_ax);
set(hc, 'Position', [0.78 0.0485 0.0161 0.8016])
set(hc, 'Position', [0.77 0.1 0.0161 0.8])
caxis(uv_ax, [0 360])
cbfreeze(hc)
delete(findobj(gcf, 'type', 'legend'));
delete(findobj(gcf, 'type', 'hggroup'));
legend(uv_ax, 'hide')
legend(im_ax, 'hide')
for ii=1:length(u)
if ~isempty(om{ii})
h(ii) = scatter(uv_ax, u{ii}, v{ii}, 20, omtoRGB(om{ii}), 'filled');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment