In my app, I use QCustomPlot to represent multiple curves in a graph. I would also add an independent component of the plot to customize the colors to associate with each curve. In this component I would like to be able to use a color scale (QCPColorScale) to assign a color to a graph.
Each curve of my graph has a property value "V" and I would like the QCPColorScale to have the interval [min-max] with:
- min : the smallest value "V" associated with a curve
- max : the largest value "V" associated with a curve
I would then use this QCPColorScale to associate with each curve the corresponding color.
To do that, I need to get a color for a value from the QCPColorScale. But I have the impression that it is not possible? There is no function getColor (double value) for example?