[EMAIL PROTECTED] wrote: > matalb has a gscatter command that work like this" > > GSCATTER(X,Y,G) creates a scatter plot of the vectors X and Y > grouped by G. Points with the same value of G are shown with > the same color and marker. G is a grouping variable defined as > a vector, a cell array of strings, or a string matrix, and it > must have the same number of rows as X and Y. Alternatively > G can be a cell array of grouping variables (such as {G1 G2 G3}) > to group the values in X by each unique combination of grouping > variable values. > > GSCATTER(X,Y,G,CLR,SYM,SIZ) specifies the colors, markers, and > size to use. CLR is either a string of color specifications or > a three-column matrix of color specifications. SYM is a string > of marker specifications. Type "help plot" for more information. > For example, if SYM='o+x', the first group will be plotted with a > circle, the second with plus, and the third with x. SIZ is a > marker size to use for all plots. By default, the marker is '.'. > > GSCATTER(X,Y,G,CLR,SYM,SIZ,DOLEG) lets you control whether legends > are created. Set DOLEG to 'on' (default) or 'off'. > > GSCATTER(X,Y,G,CLR,SYM,SIZ,DOLEG,XNAM,YNAM) specifies XNAM and > YNAM as the names of the X and Y variables. Each must be a > character string. If you omit XNAM and YNAM, GSCATTER attempts to > determine the names of the variables passed in as the first and > second arguments. > > H = GSCATTER(...) returns an array of handles to the objects > created. > > Example: Scatter plot of car data coded by country. > load carsmall > gscatter(Weight, MPG, Origin) > > See also grpstats, grp2idx." > > it's very very useful instead of doing multiple scatter and merging them > togheter. I think it can be easily implemented but i don't know how much > request there is for it. > > > Giorgio >
I don't think something like that work in matplotlib with scatter for the marker parameter. But it's possible to use an array of sizes and colors, ie. s = [20,30,40] x = arange(3) y = arange(3) scatter(x,y,s=s) See scatter doc string: Arguments s and c can also be given as kwargs; this is encouraged for readability. s is a size in points^2. It is a scalar or an array of the same length as x and y. c is a color and can be a single color format string, or a sequence of color specifications of length N, or a sequence of N numbers to be mapped to colors using the cmap and norm specified via kwargs (see below). Note that c should not be a single numeric RGB or RGBA sequence because that is indistinguishable from an array of values to be colormapped. c can be a 2-D array in which the rows are RGB or RGBA, however. Manuel ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users