Made live plotting data functions