Changeset 19203


Ignore:
Timestamp:
03/17/15 15:51:57 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed plot_BC on new version of matlab

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

Legend:

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

    r18157 r19203  
    22
    33%plot neuman
    4 plot_icefront(md,options,width,i,data)
     4h0 = plot_icefront(md,options,width,i,data);
    55
    66hold on
     
    2828end
    2929
    30 %update legend
    31 [legend_h,object_h,plot_h,text_strings]=legend();
    32 legend('off');
    33 if strcmpi(dirichleton,'on'),
    34         text_strings{end+1}='vx Dirichlet';
    35         text_strings{end+1}='vy Dirichlet';
    36         if h3, text_strings{end+1}='vz Dirichlet'; end
    37         plot_h(end+1)=h1;
    38         plot_h(end+1)=h2;
    39         if h3, plot_h(end+1)=h3; end
    40 end
    41 legend(plot_h,text_strings,'location','NorthEast')
     30strings = {'Neumann'};
     31if ~isempty(h1), strings{end+1} = 'vx Dirichlet'; end
     32if ~isempty(h2), strings{end+1} = 'vy Dirichlet'; end
     33if ~isempty(h3), strings{end+1} = 'vz Dirichlet'; end
     34
     35legend([h0,h1,h2,h3],strings,'location','NorthEast');
    4236
    4337hold off
  • issm/trunk-jpl/src/m/plot/plot_icefront.m

    r17687 r19203  
    1 function plot_icefront(md,options,width,i,data)
     1function h2 = plot_icefront(md,options,width,i,data)
    22%PLOT_ICEFRONT - plot segment on neumann BC
    33%
Note: See TracChangeset for help on using the changeset viewer.