Rainbow color scheme for family of histograms

Dear all,

I have a family of histograms whereby the number of histograms itself is variable (it depends on the number of epochs a neural network has been trained). I’d like to write a plotting script that – in a fully automated way – draws the histograms and sets the particular line color such that the line colors of the family of histograms correspond to the rainbow color scheme, e.g. as it is used for TH2 histograms (kRainBow). So I need an array whose entries correspond to the respective color values and depend the number of histograms that are drawn. How can that be implemented?

Many thanks in advance.

May be the automatic colouring explained here can be a solution ?

Perfect! This is exactly what I was looking for. Thank you very much.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.