diff --git a/MOT Capture Process Simulation/+Plotting/plotPositionAndVelocitySampling.m b/MOT Capture Process Simulation/+Plotting/plotPositionAndVelocitySampling.m index e43edbf..ad87281 100644 --- a/MOT Capture Process Simulation/+Plotting/plotPositionAndVelocitySampling.m +++ b/MOT Capture Process Simulation/+Plotting/plotPositionAndVelocitySampling.m @@ -1,4 +1,4 @@ -function plotPositionAndVelocitySampling(obj, NumberOfBins) +function plotPositionAndVelocitySampling(NumberOfBins, initialPositions, initialVelocities) f_h = Helper.getFigureByTag('RejectionSampling'); set(groot,'CurrentFigure',f_h); @@ -13,9 +13,6 @@ function plotPositionAndVelocitySampling(obj, NumberOfBins) screensize = get(0,'ScreenSize'); f_h.Position = [[screensize(3)/7 screensize(4)/7] 1.357e+03 770]; - initialPositions = obj.InitialPositions; - initialVelocities = obj.InitialVelocities; - subplot(3,2,1) histogram(initialPositions(:, 1)*1e3,NumberOfBins, 'LineStyle', 'none', 'DisplayName','x-Component') xlabel('Positions (mm)','FontSize', 14)