lets say i have this class:
class MyClass {
QCustomPlot* grid;
QCPColorscale* color_scale;
QVector<double> x;
QVector<double> y;
void plot() {
for(int i = 0; i < 30,000; i++) {
x.push_back(i);
y.push_back(i);
}
}
about every point i know its distance and i want to plot so that every point will be plotted in different color accordingly to the distance.