Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot output #3

Merged
merged 9 commits into from
Jul 12, 2017
Prev Previous commit
Next Next commit
Use plots.axis instead of loop in graph generating process.
  • Loading branch information
qifan-han committed Jul 12, 2017
commit 403987680526f6c38e2761f989d12e5264092b22
39 changes: 16 additions & 23 deletions Scripts/karel_68_all_1950_2008_interactive_plot.m
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,25 @@

figure(1)

plots.name(1,:) = {'Log(1/1-AMTR)'};
plots.name(1,:) = {'Log(1/1-AMTR)'};

plots.name(2,:) = {'Log Income'};
plots.name(2,:) = {'Log Income'};

plots.name(3,:) = {'Log Real GDP'};
plots.name(3,:) = {'Log Real GDP'};

plots.name(4,:) = {'Unemployment Rate'};
plots.name(4,:) = {'Unemployment Rate'};

plots.order = [1,3,2,4];
plots.axis(1,:) = [1 6 -1.4 .6];

caux = norminv(1-((1-confidence)/2),0,1);
plots.axis(2,:) = [1 6 -.5 2.5];

plots.axis(3,:) = [1 6 -.4 1.6];

plots.axis(4,:) = ([1 6 -.7 .3]);

plots.order = [1,3,2,4];

caux = norminv(1-((1-confidence)/2),0,1);

for iplot = 1:4

Expand Down Expand Up @@ -374,23 +382,8 @@
legend('location','southeast')

end

if iplot == 1

axis([1 6 -1.4 .6]);

elseif iplot == 2

axis([1 6 -.5 2.5]);

elseif iplot == 3

axis([1 6 -.4 1.6]);

elseif iplot == 4

axis([1 6 -.7 .3]);
end

axis(plots.axis(iplot,:))

end

Expand Down