From 69358ded5fa88a5238da93c97fde8540317c8304 Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Wed, 14 Jul 2021 20:12:08 +0200 Subject: [PATCH] Removed the passing of the Simulator object as an argument. --- .../+Plotting/plotPositionAndVelocitySampling.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)