summaryrefslogtreecommitdiff
path: root/energy_vs_stability.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2013-02-20 15:52:13 -0500
committerMatt Argao <mcargao@email.wm.edu>2013-02-20 15:52:13 -0500
commit563330e918440fd6ef34ffac88706c0e19a0ba08 (patch)
tree49830ffb3473c11152290a4cd3054ea34e5fc34d /energy_vs_stability.m
parent12948ff5436c6c385d239572f5eb20ed19f93392 (diff)
downloadmode_match-563330e918440fd6ef34ffac88706c0e19a0ba08.tar.gz
mode_match-563330e918440fd6ef34ffac88706c0e19a0ba08.zip
Added ability to set y-max (stabiility) in energy vs. stability graph.
Diffstat (limited to 'energy_vs_stability.m')
-rw-r--r--energy_vs_stability.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/energy_vs_stability.m b/energy_vs_stability.m
index da03f89..25e0d06 100644
--- a/energy_vs_stability.m
+++ b/energy_vs_stability.m
@@ -1,4 +1,4 @@
-function [] = energy_vs_stability( possible_energy, stability, index )
+function [] = energy_vs_stability( possible_energy, stability, index, stability_max )
%ENERGY_VS_STABILITY Summary of this function goes here
% Detailed explanation goes here
@@ -15,16 +15,17 @@ function [] = energy_vs_stability( possible_energy, stability, index )
figure(n+1)
textCell = arrayfun(@(x,y) sprintf('(%3.2f, %3.2f)',x,y),energy,fixed_stability,'un',0);
- scatter(energy,fixed_stability,25,c,'filled');
- xlabel('Energy');
- ylabel('Stability');
+ scatter(energy,fixed_stability,25,c,'filled')
+ xlabel('Energy')
+ ylabel('Stability')
+ ylim([0,stability_max])
dx =0.000000005;
dy =0.000000005;
for i = 1:n
n_solution = num2str(i);
- text(energy(i)+dx, fixed_stability(i)+dy, n_solution, 'FontSize',12);
+ text(energy(i)+dx, fixed_stability(i)+dy, n_solution, 'FontSize',10);
end
% for i = 1:n