Page 1 of 1

Define scatter graph points by RGB value

Posted: Mon Sep 24, 2012 4:00 am
by matious
I would like to make a 3D sscatter plot (X,Y,Z) where the color of each point is defined by a different RGB value. Is this possible?
Many thanks

Posted: Mon Sep 24, 2012 8:10 am
by DPlotAdmin
You need a 4th dimension that the color will be tied to and you'd make a 4D scatter plot.

Posted: Tue Sep 25, 2012 8:06 am
by matious
Thanks
If say I wanted the first point to be ultra orage (RGB = 255, 96, 55) how would I enter this as a single number in the amplitude (4th) column of some Excel data?

Posted: Tue Sep 25, 2012 1:16 pm
by DPlotAdmin
It doesn't work that way, though I'm thinking that would be a good addition.

If you have 256 or fewer points and want unique colors for every point, just set the 4th dimension to the point index (1 through whatever). In DPlot on the Scatter Plot Options dialog, select Amplitude under "Color Based on", select Custom colors, then click the adjacent >> button. There you can define up to 256 colors.

If you have more than 256 points but don't need more than 256 unique colors you'd just set the 4th dimension equal for every point that should be the same color.