Closedown

This commit is contained in:
sfop
2016-10-05 17:29:24 +02:00
parent 8b97956943
commit 8711317898
2 changed files with 6 additions and 5 deletions

View File

@@ -675,7 +675,7 @@ public class ScreenPanel extends Panel {
double maxPlot = gaussian[0];
yMean = gaussian[1];
ySigma = gaussian[2];
gaussian[0] += min;
gaussian[0] += min;
double[] fit = getFitFunction(gaussian, x);
int[] y = new int[x.length];
@@ -697,8 +697,9 @@ public class ScreenPanel extends Panel {
new Point(xMean.intValue(), yMean.intValue()),
new Dimension(2 * xSigma.intValue(), 2 * ySigma.intValue()));
text = new Overlays.Text(fitPen,
String.format("x = %1.3f \n y = %1.3f" , data.getX((int) Math.round(xMean)), data.getY((int) Math.round(yMean))),
text = new Overlays.Text(fitPen,
String.format("x = %1.3f " + "\u03C3 = %1.3f \ny = %1.3f " + "\u03C3 = %1.3f" ,
data.getX((int) Math.round(xMean)), xSigma, data.getY((int) Math.round(yMean)), ySigma),
new Font(Font.MONOSPACED, 0, 14), new Point(20,20));
text.setFixed(true);
text.setAnchor(Overlay.ANCHOR_VIEWPORT_TOP_LEFT);