Updated plotting codes to use xml-parsed data