Core method to get and process the data; construct plot1