Changeset 11169


Ignore:
Timestamp:
01/23/12 08:22:01 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed double colorbar

Location:
issm/trunk-jpl/src/m/model/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/plot/applyoptions.m

    r9734 r11169  
    424424                [mdx mdy]=basinzoom(options);
    425425        else
    426                 mdx=[min(md.mesh.x) max(md.mesh.x)];
    427                 mdy=[min(md.mesh.y) max(md.mesh.y)];
     426                offset=3*10^4;
     427                mdx=[min(md.mesh.x)-offset max(md.mesh.x)+offset];
     428                mdy=[min(md.mesh.y)-offset max(md.mesh.y)+offset];
    428429        end
    429430        line(A.x,A.y,ones(size(A.x)),'color','b');
  • issm/trunk-jpl/src/m/model/plot/plot_scatter.m

    r11161 r11169  
    2121%generate levels
    2222if (alreadyplot),
    23         h=colorbar;
     23        phch = get(findall(gcf,'type','image','tag','TMW_COLORBAR'),{'parent'});
     24        h    = phch{1};
    2425        ylim=get(h,'YLim');
    2526        palette=colormap;
     
    5051end
    5152
     53alreadyplot
    5254if ~alreadyplot,
    5355        % format the colorbar
Note: See TracChangeset for help on using the changeset viewer.