Changeset 18325
- Timestamp:
- 08/03/14 22:50:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-ad2/src/m/plot/plot_gl.m
r18323 r18325 85 85 caxis2string=''; 86 86 labelstring=''; 87 shortlabelstring=''; 87 88 unitstring=''; 88 89 zoom=getfieldvalue(options,'zoom',-.25); … … 92 93 caxis=getfieldvalue(options,'caxis',[min(data(:)) max(data(:))]); 93 94 label=getfieldvalue(options,'label',''); 95 shortlabel=getfieldvalue(options,'shortlabel',''); 94 96 if strcmpi(label,''), 95 97 %create generic label: 96 98 label=['data' num2str(i)]; 99 end 100 if strcmpi(shortlabel,''), 101 %create generic short label: 102 shortlabel=['data' num2str(i)]; 97 103 end 98 104 unit=getfieldvalue(options,'unit',''); … … 107 113 caxis2string=[caxis2string num2str(caxis(2)) ',']; 108 114 labelstring=[labelstring '"' label '"' ',']; 115 shortlabelstring=[shortlabelstring '"' shortlabel '"' ',']; 109 116 unitstring=[unitstring '"' unit '"' ',']; 110 117 else … … 113 120 caxis2string=[caxis2string num2str(caxis(2))]; 114 121 labelstring=[labelstring '"' label '"']; 122 shortlabelstring=[shortlabelstring '"' shortlabel '"']; 115 123 unitstring=[unitstring '"' unit '"']; 116 124 end 117 125 writejsfield(fid,['data' num2str(i)],data,md.mesh.numberofvertices); 118 126 end 119 replacestringinfile('./generic/editables.js','"V"',labelstring); 127 replacestringinfile('./generic/editables.js','"Velocity"',labelstring); 128 replacestringinfile('./generic/editables.js','"V"',shortlabelstring); 120 129 replacestringinfile('./generic/editables.js','"velocity"',datastring); 121 130 replacestringinfile('./generic/editables.js','var data_min_array = [0',['var data_min_array = [' caxis1string]);
Note:
See TracChangeset
for help on using the changeset viewer.