Since you are new, let us show you how Trendy works.

Close-button

Nation debt per person, Canada vs USA

  • Created by: Matt Tearle
  • Latest result: Plot created
  • Created on: 24 Feb 2012

Same as Rob Nickerson's version, but using plotyy.

Plot Image
% time1218 and data1218 available for use
% for My share of the National Debt
% 
idx = data1218==0;
time1218(idx) = [];
data1218(idx) = [];
idx = data1219==0;
time1219(idx) = [];
data1219(idx) = [];


[ax,h1,h2] = plotyy(time1218,data1218,time1219,data1219);
datetick(ax(1),'x')
set(ax(2),'XTick',[])
set(h1,'marker','o')
set(h2,'marker','o')
title('National Debt Per Person - US v. Canada')
ylabel('Dollar Amount')
legend({'United States', 'Canada'},...
'Location','West')
Tags:

    Add Tags


    0 comments