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 e36cd73..644a649 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 @@ -141,11 +141,11 @@ public class PlotFragment extends Fragment { if (maxX < values.length) { maxX = values.length; } - graphView.getViewport().setMaxY(100); - graphView.getViewport().setMaxX(maxX); - graphView.getViewport().setXAxisBoundsManual(true); - graphView.getViewport().setYAxisBoundsManual(true); } + graphView.getViewport().setMaxY(100); + graphView.getViewport().setMaxX(maxX); + graphView.getViewport().setXAxisBoundsManual(true); + graphView.getViewport().setYAxisBoundsManual(true); graphView.getLegendRenderer().setVisible(true); graphView.getLegendRenderer().setBackgroundColor(Color.rgb(200,200,200)); graphView.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.TOP);