Changeset 5866


Ignore:
Timestamp:
09/17/10 11:40:04 (15 years ago)
Author:
seroussi
Message:

to be removed later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_section.m

    r5832 r5866  
    1 function plot_section(md,data,options,width,i)
     1function plot_section(md,data,options,nlines,ncols,i)
    22%PLOT_SECTION - plot a given field on a section
    33%
     
    8383                %plot section value
    8484                hold on;
    85                 subplot(width,width,index1)
    86                 plot(s,data_s,'color',color(i,:))
     85                subplot(nlines,ncols,index1)
     86                %subplot(1,3,[2 3])
     87                if i==1,
     88                        plot(s,data_s,'color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     89                elseif i==2
     90                        plot(s,data_s,'color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     91                elseif i==3
     92                        plot(s,data_s,'--','color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     93                elseif i==4
     94                        plot(s,data_s,'-.','color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     95                elseif i==5
     96                        plot(s,data_s,':','color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     97                end
    8798
    8899                %3D
Note: See TracChangeset for help on using the changeset viewer.