Hello, I have been given a large dataset to represent, and have come up with a radial diagram for a series of gyroscope entries in 3 dimensions. the code is as follows:
//Check if label would go beyond screen dimensions
if (x + labelW + 20 > width) {
x -= labelW + 20;
}
stroke(0);
strokeWeight(1);
fill(255);
rect(x, y - 15, 15, labelW);
}
}
//For background
//void drawGradient(int x, int y, float w, float h, color c1, color c2) {
// noFill();
// for (int r = 0; r <= sqrt(sq(xo) + sq(yo)); ++r) {
// float inter = map(r, x, x+w, y, y+h);
// color c = lerpColor(c1, c2, inter);
// stroke(c);
// ellipse(xo, yo, r, r);
// }
//}
I haven't included the dataset in here, but here is an image of the sketch:
The console also has the following text:
"GX: Min., Mean, Max.
-11015.0, -2.0453224, 9558.0
GX: LQ, Median, UQ, Range
-94.0, 37.0, 322.0, 416.0
GY:Min., Mean, Max.
-3824.0, -56.239105, 7502.0
GY:LQ, Median, UQ, Range
-242.0, -26.0, 122.0, 364.0
GZ:Min., Mean, Max.
-6981.0, 7.352702, 8776.0
GZ:LQ, Median, UQ, Range
-391.0, -79.0, 93.0, 484.0"
What I need is to create labels for the data. I was hoping to be able to have floating labels that appear when the mouse floats over the appropriate areas, but have struggled to get the class Label right. Can anyone help me? If it's too difficult without the .csv file I can provide it.
I have 6 columns of data in a .csv file that I need to find the maximum and minimum values of. Apparently max() and min() don't like having float[] values being put in from externally sourced data. Is there a way around this?
I'm working on representing a set of data in the form of ellipses based on averages and standard deviations.
I worked out the averages in Edexcel, but there are a few values that fall outside the boundary I'm hoping to set (I will set those boundaries after this issue is resolved), so I will need the average values figured out in Processing.
Can someone please tell me why I'm getting the above error reading and how I can fix it?