From 8cf387a79f590f8cc2712f67be7ca458d3d3a17d Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Fri, 8 Jan 2021 09:39:43 +0100 Subject: [PATCH] plot in plot fragment will now always render from 0 to 100 on the y axis --- .../src/main/java/com/example/aped/ui/plots/PlotFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/APED/app/src/main/java/com/example/aped/ui/plots/PlotFragment.java b/APED/app/src/main/java/com/example/aped/ui/plots/PlotFragment.java index 7b0adb0..394a6f1 100644 --- a/APED/app/src/main/java/com/example/aped/ui/plots/PlotFragment.java +++ b/APED/app/src/main/java/com/example/aped/ui/plots/PlotFragment.java @@ -122,6 +122,7 @@ public class PlotFragment extends Fragment { maxX = values.length; } } + graphView.getViewport().setMinY(0); graphView.getViewport().setMaxY(100); graphView.getViewport().setMaxX(maxX); graphView.getViewport().setXAxisBoundsManual(true);