From fac84bfaea0be20496e4edf5f3ec091c49eb6987 Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Mon, 29 Jan 2024 10:25:44 +0100 Subject: [PATCH] LimitedIndexedTreeDataSet: fix yErrors Fixes a small typo bug that would initialize tze yErrors with the yValues instead of the supplied yValues. Thanks to @zanzica for finding and repoting this. --- .../java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartfx-dataset/src/main/java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java b/chartfx-dataset/src/main/java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java index fa8db2179..b88fd8ac1 100644 --- a/chartfx-dataset/src/main/java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java +++ b/chartfx-dataset/src/main/java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java @@ -447,7 +447,7 @@ public LimitedIndexedTreeDataSet set(final double[] xValues, final double[] yVal final double x = xValues[i]; final double y = yValues[i]; final double dx = xErrors[i]; - final double dy = yValues[i]; + final double dy = yErrors[i]; getAxisDescription(DIM_X).add(x - dx); getAxisDescription(DIM_X).add(x + dx); getAxisDescription(DIM_Y).add(y - dy);