Mercurial > repos > vipints > rdiff
annotate rDiff/src/locfit/m/plotbyfactor.m @ 3:29a698dc5c7e default tip
Merge multiple heads.
author | Dave Bouvier <dave@bx.psu.edu> |
---|---|
date | Mon, 27 Jan 2014 14:15:36 -0500 |
parents | 0f80a5141704 |
children |
rev | line source |
---|---|
0 | 1 function plotbyfactor(x,y,f) |
2 % | |
3 % very simplistic version of plotbyfactor. | |
4 % no symbols, will crash if more than 8 levels. | |
5 % | |
6 | |
7 z = unique(f); | |
8 cols = ['b','r','g','m','c','y','k','w']; | |
9 | |
10 for (i = 1:length(z)) | |
11 u = find(f==z(i)); | |
12 plot(x(u),y(u),'.','color',cols(i)); | |
13 hold on; | |
14 end; | |
15 hold off; | |
16 | |
17 return; |