I have the following code:

data = {};
Do[AppendTo[data, Reap[(...)]], {k, 0, 10, 0.5}];
ListPlot[data, ImageSize -> Full]

I'm collecting points with a changing parameter k. How can I change the brightness or the color of the points collected with a specific k according to the value of k?

  • 2
    $\begingroup$ You might need to be a bit more specific about what's going on in the ... part of your code to get a useful answer. $\endgroup$ – aardvark2012 Nov 6 '17 at 4:50
  • $\begingroup$ See, for instance, the answers to question 1300. $\endgroup$ – bbgodfrey Nov 6 '17 at 4:54
  • $\begingroup$ Are you sure that you indeed need to vary the brightness, rather than, say, a color? I mean that a slight change of the brightness may be noticeable not enough. If you are sure about the brightness, have a look at the LCHColor: Menu/Help/WolframDocumentation/LCHColor. This might help. $\endgroup$ – Alexei Boulbitch Nov 6 '17 at 13:47

Your Answer

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

Browse other questions tagged or ask your own question.