Changeset 18917
- Timestamp:
- 12/03/14 14:52:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/plot/plot_scatter.m ¶
r18250 r18917 37 37 38 38 %OK, should we create a new colorbar for the occasion? 39 if isempty(findobj(gcf,'tag','TMW_COLORBAR')) ,39 if isempty(findobj(gcf,'tag','TMW_COLORBAR')) && isempty(findobj(gcf,'Type','Colorbar')), 40 40 alreadyplot=false; 41 41 else … … 46 46 if (alreadyplot), 47 47 phch = get(findall(gcf,'type','image','tag','TMW_COLORBAR'),{'parent'}); 48 h = phch{1}; 49 ylim=get(h,'YLim'); 48 if ~isempty(phch), 49 h = phch{1}; 50 ylim=get(h,'YLim'); 51 else 52 %R2014b + 53 h = findobj(gcf,'Type','Colorbar'); 54 ylim = h.Limits; 55 end 50 56 palette=colormap; 51 57 numcolors=size(palette,1);
Note:
See TracChangeset
for help on using the changeset viewer.