infile = fopen('SitzverteilungParlament2016.txt','rt');
Names = {}; Seats = [];
tline = fgetl(infile);
k = 1;
while ischar(tline)
  posSpace = find(tline==' ');
  Names{k}=tline(1:posSpace-1);
  Seats = [Seats;str2num(tline(posSpace:end))];
  tline = fgetl(infile); k = k+1;
end%while
fclose(infile);

figure(1)
pie(Seats,Names)

figure(2)
pie3(Seats,[0 0 0 0 1 0 1 0]',Names)
