Changeset 24535


Ignore:
Timestamp:
01/31/20 11:48:24 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed paraview colorbar and added some options to manualcb

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

Legend:

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

    r24079 r24535  
    1 function cmap = paraview(m)
     1function cmap = paraview(n)
    22
    33J=[...
  • issm/trunk-jpl/src/m/plot/manualcb.m

    r24067 r24535  
    1 function manualcb(zmin,zmax,cmap,varargin)
     1function h=manualcb(zmin,zmax,cmap,varargin)
    22%MANUALCB - custom colorbar
    33%
     
    1212%      - 'orientation' : 'vertical' (default) or 'horizontal'
    1313%      - 'title'       : colorbar title
     14%      - 'xlabel'      : colorbar x-label
     15%      - 'ylabel'      : colorbar y-label
    1416%      - 'tick'        : specified values of tick labels
    1517%      - 'ticksep'     : spacing between ticks
     
    133135                th=title(getfieldvalue(options,'title'),'FontSize',fontsize,'Color',fontcolor);
    134136                set(th,'Position',[ytick(end)+0.075,-0.3]);
     137        elseif getfieldvalue(options,'inverttickposition',0)==1,
     138                text(1.9,.7,getfieldvalue(options,'ylabel'),'HorizontalAlignment','right','VerticalAlignment','middle','FontSize',fontsize,'Color',fontcolor,'rotation',90);
    135139        else
    136140                ylabel(getfieldvalue(options,'ylabel'),'FontSize',fontsize,'Color',fontcolor);
     
    139143       
    140144%Back to original axes
     145h=gca;
    141146if getfieldvalue(options,'showregion',0)==0,
    142147        %Do it this way in order to preserve the figure visibility
Note: See TracChangeset for help on using the changeset viewer.