Group: | Plot Manipulation |
See also: | setmaskp setmaskl freecolor |
Function: | createcolor | |
Description: |
createcolor allocates the colors for user
|
Usage: | createcolor(rgb) | |
Input: | ||
rgb | a matrix with 3 columns; the 3 numbers in each row are values from 0 to 256 and content red, green and blue parts of a color. That command prepared the XploRe for setmaskl or setmaskp. If you cannot allocate more color, you can help you with freecolor(). The maximal number of different rows in rgb is 248. |
x=uniform(10000, 2)*2-1 z=x.*x z=z[,1]+z[,2] z=z/max(z) z=z*248 grey=z~z~z freecolor() createcolor(grey) z=x~z setmaskp(z, grey, 8, 5) d=createdisplay(1, 1) show(d, 1, 1, z)
you see the points that are nearer to the center darker as the other points
Group: | Plot Manipulation |
See also: | setmaskp setmaskl freecolor |