plot the sample in different colors based on magnitude