From ee01ffa106e0faa4e2c34a253182790e88e07521 Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Mon, 30 Aug 2021 10:36:14 +0200 Subject: [PATCH] Commented out the line calling the restoreDefaults function. --- +Plotter/plotPhaseSpaceWithAccelerationField.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/+Plotter/plotPhaseSpaceWithAccelerationField.m b/+Plotter/plotPhaseSpaceWithAccelerationField.m index f3c26ea..f198b01 100644 --- a/+Plotter/plotPhaseSpaceWithAccelerationField.m +++ b/+Plotter/plotPhaseSpaceWithAccelerationField.m @@ -23,7 +23,7 @@ function plotPhaseSpaceWithAccelerationField(OvenObj, MOTObj, MinimumVelocity, M a=zeros(NumberOfBins+1,NumberOfBins+1,3); - MOTObj.restoreDefaults(); +% MOTObj.restoreDefaults(); for i=1:length(X) for j=1:length(Y) @@ -60,9 +60,13 @@ function plotPhaseSpaceWithAccelerationField(OvenObj, MOTObj, MinimumVelocity, M end hold on - + + count = 0; for i=1:length(Y) - plot(DynamicalQuantities(i,:,1),DynamicalQuantities(i,:,4),'w','linewidth',1.3) + if DynamicalQuantities(i,end,2) > 0 + plot(DynamicalQuantities(i,:,1),DynamicalQuantities(i,:,4),'w','linewidth',1.3) + count = count + 1; + end end hold off