Changeset 27402


Ignore:
Timestamp:
11/21/22 07:50:52 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not process levelset the same way we process data, use jet cmap by default and disable MATLAB interactivity in plot_scatter

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

Legend:

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

    r27356 r27402  
    1414if islevelset
    1515        levelset = getfieldvalue(options,'levelset');
    16         options2 = options;
     16        options2 = copy(options);
    1717        options2.removefield('caxis',false);
    1818        options2.removefield('log',false);
    19         [levelset datatype]=processdata(md,levelset,options);
     19        [levelset datatype]=processdata(md,levelset,options2);
    2020end
    2121
  • issm/trunk-jpl/src/m/plot/plot_overlay.m

    r25797 r27402  
    172172options=addfielddefault(options,'axis','equal off'); % default axis
    173173applyoptions(md,data,options);
    174 drawnow
     174%drawnow
  • issm/trunk-jpl/src/m/plot/plot_scatter.m

    r24628 r27402  
    6262                ylim = h.Limits;
    6363        end
    64         palette=colormap();
     64        palette=jet();%colormap();
    6565        numcolors=size(palette,1);
    6666        levels=round_ice(linspace(ylim(1),ylim(2),numcolors+1),2);
     
    107107end
    108108
     109%Stop MATLAB's default interactivity
     110disableDefaultInteractivity(gca);
     111
    109112if ~alreadyplot,
    110113        % format the colorbar
Note: See TracChangeset for help on using the changeset viewer.