Changeset 1101
- Timestamp:
- May 5, 2021, 11:44:05 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1100 r1101 595 595 hc=copyobj(handles.PlotAxes,hfig); 596 596 set(hc,'Position',[0.1 0.1 0.8 0.8]) 597 title_menu=get(handles.FieldName,'String'); 598 title_string=title_menu{get(handles.FieldName,'Value')}; 599 title(title_string); 597 600 h=findobj(handles.PlotAxes,'tag','ima'); %look for image in the plot 598 601 if ~isempty(h) … … 601 604 colorbar 602 605 end 606 %% copy the colormap of the vector color if relevant 607 if strcmp(get(handles.Vectors,'Visible'),'on') 608 color_menu=get(handles.ColorCode,'String'); 609 color_mode=color_menu{get(handles.ColorCode,'Value')}; 610 if ~(strcmp(color_mode,'black')||strcmp(color_mode,'white')) 611 hveccolor=axes('Position',[0.93 0.1 0.02 0.5]); 612 ima=permute(get(handles.VecColBar,'CData'),[2 1 3]); 613 ymin=str2num(get(handles.num_MinVec,'String')); 614 ymax=str2num(get(handles.num_MaxVec,'String')); 615 set(hveccolor,'YLim',[ymin ymax]) 616 imagesc([0 1],[ymin ymax],ima) 617 set(hveccolor,'YDir','normal') 618 set(hveccolor,'YAxisLocation', 'right') 619 set(hveccolor,'XTickLabel','') 620 scalar_menu=get(handles.ColorScalar,'String'); 621 scalar_title=scalar_menu{get(handles.ColorScalar,'Value')}; 622 htitle=get(hveccolor,'Title'); 623 set(htitle,'String',scalar_title) 624 end 625 end 626 603 627 604 628 % --------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.