Ignore:
Timestamp:
08/17/18 11:41:40 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/exptool.m

    r21780 r23107  
    105105                P=get(gcf,'position');
    106106                Fp=get(gca,'position');
     107                h = findobj(gcf,'type','axes');
    107108                F=getframe(gca);
    108109                F=F.cdata;
     
    114115                y_m=linspace(ylim(2),ylim(1),size(F,1)); %getframe reverse axis...
    115116                %plot the data in another figure
    116                 figure; set(gcf,'position',P);
    117                 imagesc(x_m,y_m,F); set(gca,'Ydir','normal','Position',Fp,'Xlim',xlim,'Ylim',ylim);
     117                f2= figure;
     118                s = copyobj(h,f2);
     119                set(gcf,'position',P);
     120                imagesc(x_m,y_m,F);
     121                set(gca,'Ydir','normal','Position',Fp,'Xlim',xlim,'Ylim',ylim);
    118122                prevplot=1;
    119123                prevplot2=1;
Note: See TracChangeset for help on using the changeset viewer.