From 8ce062acc422096b5de0f5ff5c24a0d18b88e990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 3 Sep 2019 15:40:56 +0200 Subject: [PATCH] [apps/shared] CartesianFunction: default domain of parametric and polar functions is 0..2*pi --- apps/shared/cartesian_function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared/cartesian_function.cpp b/apps/shared/cartesian_function.cpp index 1e7952f6a..1196cdf29 100644 --- a/apps/shared/cartesian_function.cpp +++ b/apps/shared/cartesian_function.cpp @@ -131,7 +131,7 @@ void CartesianFunction::setPlotType(PlotType newPlotType) { Expression e = expressionClone(); m_model.tidy(); double tMin = newPlotType == PlotType::Cartesian ? -INFINITY : 0.0; - double tMax = newPlotType == PlotType::Cartesian ? INFINITY : 360.0; + double tMax = newPlotType == PlotType::Cartesian ? INFINITY : 2.0*M_PI; setTMin(tMin); setTMax(tMax); recordData()->setPlotType(newPlotType);