Is it possible to make a color gradient over a single graph.
I took the expample from the tutorials, but how can I program a color gradient for an single graph?
// generate some data:
QVector<double> x(101), y(101); // initialize with entries 0..100
for (int i=0; i<101; ++i)
x = i/50.0 - 1; // x goes from -1 to 1
y = x*x; // let's plot a quadratic function
// create graph and assign data to it:
// give the axes some labels:
// set axes ranges, so we see all data:
Many thanks for your help