0
$\begingroup$

I have a list of 3D coordinates. I create an array of disks using their (x,y) coordinates as:

list = Table[{i, j, RandomReal[]}, {i, 0, 4}, {j, 0, 4}];
list = ArrayFlatten[list, 1];
disks = {Red, Disk[{#[[1]], #[[2]]}, 0.1]} & /@ list;
Graphics[disks]

Array of red disks created with the first block of code

How can I modify this code so that the disks sample from the ColorScheme "LightTemperatureMap" with their z-component.

$\endgroup$
2
$\begingroup$
list = Table[{i, j, RandomReal[]}, {i, 0, 4}, {j, 0, 4}];
list = ArrayFlatten[list, 1];
disks = {ColorData["LightTemperatureMap"][#[[3]]], Disk[{#[[1]], [[2]]},0.1]} & /@ list;
Graphics[disks]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.