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