Changeset 21933
- Timestamp:
- 08/10/17 10:26:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_scatter.m
r18917 r21933 8 8 % 'caxis' : default is full range 9 9 % 'MarkerSize' : default is 3 10 % 'subset' : only plot the indices provided 10 11 % 'Line' : use line instead of circles 11 12 % 'Cutoff' : cut the line if the distance between 2 points is … … 21 22 if numel(x)~=numel(y) | numel(x)~=numel(level), 22 23 error('x, y and data should have the same size'); 24 end 25 26 if exist(options,'subset'), 27 pos=getfieldvalue(options,'subset'); 28 x=x(pos); 29 y=y(pos); 30 level=level(pos); 23 31 end 24 32 … … 59 67 else 60 68 palette=getcolormap(options); 69 colormap(palette); 61 70 numcolors=size(palette,1); 62 71 levels=round_ice(linspace(Min,Max,numcolors+1),2); … … 76 85 for i=1:numcolors 77 86 pos=find(colorind==i); 78 hprime=plot3(x(pos),y(pos),ones(size(x(pos))),... 87 % hprime=plot3(x(pos),y(pos),ones(size(x(pos))),... 88 hprime=plot(x(pos),y(pos),... 79 89 'o','MarkerSize',getfieldvalue(options,'MarkerSize',3),'MarkerEdgeColor',palette(i,:),... 80 90 'MarkerFaceColor',palette(i,:));
Note:
See TracChangeset
for help on using the changeset viewer.