Changeset 6287
- Timestamp:
- 10/14/10 12:06:29 (14 years ago)
- Location:
- issm/trunk/src/m/model
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/SectionValues.m
r6286 r6287 82 82 83 83 %Interpolation of data on specified points 84 %data_interp=InterpFromMeshToMesh2d(md.elements,md.x,md.y,data,X,Y);85 data_interp=griddata(md.x,md.y,data,X,Y);84 data_interp=InterpFromMeshToMesh2d(md.elements,md.x,md.y,data,X,Y); 85 %data_interp=griddata(md.x,md.y,data,X,Y); 86 86 87 87 %Compute index -
issm/trunk/src/m/model/ismodelselfconsistent.m
r6239 r6287 35 35 36 36 % Common checks 37 %VERBOSE{{{1 38 if md.verbose~=floor(abs(md.verbose)), 39 error(['field verbose should be a positive integer']); 40 end 41 %}}} 37 42 %COUNTER {{{1 38 43 if md.counter<3, -
issm/trunk/src/m/model/plot/plot_manager.m
r6286 r6287 107 107 108 108 case 'quiver' 109 plot_quiver(md,options,nlines,ncols,i); 110 return 109 data=[md.vx md.vy]; %Go ahead and try plot_unit 111 110 112 111 case {'strainrate_tensor','strainrate','strainrate_principal','strainrate_principalaxis1','strainrate_principalaxis2','strainrate_principalaxis3',... -
issm/trunk/src/m/model/plot/plot_quiver.m
r6286 r6287 1 function plot_quiver( md,options,nlines,ncols,index);1 function plot_quiver(x,y,u,v,options), 2 2 %PLOT_QUIVER - quiver plot with colors 3 3 % … … 10 10 % plot_quiver(md.x,md.y,md.vx,md.vy,options); 11 11 12 %prepare plot13 subplot(nlines,ncols,index);14 hold on15 16 fields=getfieldvalue(options,'quiver_field',{'vx','vy'});17 18 %call fields vx and vy, for ease of use19 if ischar(fields{1}), vx=md.(fields{1}); else vx=fields{1}; end20 if ischar(fields{2}), vy=md.(fields{2}); else vy=fields{2}; end21 22 12 %process fields 23 [quivers,palette]=quiver_process( md.x,md.y,vx,vy,options);13 [quivers,palette]=quiver_process(x,y,u,v,options); 24 14 25 15 %loop over the number of colors … … 35 25 %take care of colorbar 36 26 quiver_colorbar(quivers,options); 37 38 39 %apply options40 options=addfielddefault(options,'title','Quiver plot.');41 options=addfielddefault(options,'colorbar',1);42 applyoptions(md,[],options); -
issm/trunk/src/m/model/plot/plot_riftrelvel.m
r6286 r6287 105 105 hold off 106 106 107 108 109 107 %apply options 110 108 quiver_colorbar(quivers,options); -
issm/trunk/src/m/model/plot/plotdoc.m
r6286 r6287 50 50 disp(' - ''qmustddev'': plot of stddev distribution in sampling analysis with scaled response. needs option qmudata for descriptor'); 51 51 disp(' - ''part_hist'': partitioning node and area histogram'); 52 disp(' - ''quiver'': quiver plot . specify quiver fields. ''quiver_field'',{''vx'',''vy''} (default) or ''quiver_field'',{field1,field2}');52 disp(' - ''quiver'': quiver plot'); 53 53 54 54 disp(' ''alloptions'': apply the options to all subplots if ''on''');
Note:
See TracChangeset
for help on using the changeset viewer.