yr=1950:10:2000;
tab=[ ... 
             32.2678             41.7419             29.0115              8.0017
             30.0905             40.9753             28.3231             11.1209
             28.9867             40.3323             27.3865             14.0193
             30.1050             38.7308             28.5522             17.9325
             31.3521             39.5836             29.9100             23.0724
             31.2221             38.8438             29.3677             24.4646
];
 
set(gca,'XTick',[1950 1960 1970 1980  1990 2000])
title( 'U.S. Average Hours since 1950, age group 25-64', 'FontSize',16)
xlabel('year')
ylabel('average hours')
line(yr,tab(:,1),'LineWidth',2,'Color',[0,0,1],'LineStyle','--' ,'Marker','s','MarkerFaceColor',[0,0,1])
line(yr,tab(:,2),'LineWidth',2,'Color',[0,0,1] ,'Marker','s','MarkerFaceColor',[0,0,1])
line(yr,tab(:,3),'LineWidth',2,'Color',[1,0,0],'LineStyle','--' ,'Marker','s','MarkerFaceColor',[1,0,0])
line(yr,tab(:,4),'LineWidth',2,'Color',[1,0,0] ,'Marker','s','MarkerFaceColor',[1,0,0])
text('Position',[1952 34], 'String','Single Men')
text('Position',[1952 43],'String','Married Men')
text('Position',[1952 27],'String','Single Women')
text('Position',[1952 7], 'String','Married Women')
axis([1950,2000,0,50]);
  print -dpsc fig1sr317
 
