From 745185c0ef5c2ee52bc6efb742ec3c7eae8e90d7 Mon Sep 17 00:00:00 2001 From: serso Date: Sun, 10 Apr 2016 01:02:40 +0200 Subject: [PATCH] Use 100 points in plotter for all functions --- .../org/solovyev/android/calculator/ActivityLauncher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/solovyev/android/calculator/ActivityLauncher.java b/app/src/main/java/org/solovyev/android/calculator/ActivityLauncher.java index 1ac41f5f..ae26c8a7 100644 --- a/app/src/main/java/org/solovyev/android/calculator/ActivityLauncher.java +++ b/app/src/main/java/org/solovyev/android/calculator/ActivityLauncher.java @@ -46,6 +46,7 @@ import org.solovyev.android.calculator.preferences.PreferencesActivity; import org.solovyev.android.calculator.variables.CppVariable; import org.solovyev.android.calculator.variables.EditVariableFragment; import org.solovyev.android.calculator.variables.VariablesActivity; +import org.solovyev.android.plotter.PlotFunction; import org.solovyev.android.plotter.Plotter; import org.solovyev.common.msg.MessageType; @@ -187,7 +188,9 @@ public final class ActivityLauncher { try { final CustomFunction f = new CustomFunction.Builder().setName("").setParameterNames(parameters).setContent(content).create(); final ExpressionFunction ef = new ExpressionFunction(f); - plotter.get().add(ef); + final PlotFunction pf = PlotFunction.create(ef, application); + pf.meshSpec.pointsCount = 100; + plotter.get().add(pf); showPlotter(); } catch (RuntimeException e) { errorReporter.get().onException(e);