From 0f8b12cff819c16594441158e9d2086941ad6047 Mon Sep 17 00:00:00 2001 From: Hunter Rew Date: Sat, 26 Apr 2014 17:02:46 +0000 Subject: Added README Switched to h5 files for saving data Optimized multiprocessing algorithm Made plotting scripts more universal --- view/plotSimulation.m | 3 +++ view/plotSimulations.m | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'view') diff --git a/view/plotSimulation.m b/view/plotSimulation.m index d494287..a741333 100644 --- a/view/plotSimulation.m +++ b/view/plotSimulation.m @@ -1,5 +1,8 @@ function h = plotSimulation(detunings2, absorptions) h = plot(detunings2, absorptions); + xlabel('2-photon Detuning') + ylabel('Absorption') + title('Absorption Vs 2-photon Detuning') end \ No newline at end of file diff --git a/view/plotSimulations.m b/view/plotSimulations.m index 12273af..de5344c 100644 --- a/view/plotSimulations.m +++ b/view/plotSimulations.m @@ -1,11 +1,12 @@ -function plotSimulations(widths, absorptions, drives) +function plotSimulations(drives, y1, y2) - loglog(drives, widths) + loglog(drives, y1) hold all - loglog(drives, absorptions) + loglog(drives, y2) xlabel('Drive Intensity (log scale)') ylabel('(log scale)') - title('Width and Absorption Vs Drive Intensity') - legend('Width', 'Absorption') + title(sprintf('%s and %s Vs Drive Intensity', inputname(2), inputname(3))) + legend(inputname(2), inputname(3)) + hold off end \ No newline at end of file -- cgit v1.2.3