STEP 16: Nice job! Let's finish up by naming our scatter plot something meaningful.

  • In SUBJECT, click on .
  • Then, drag in Set Title INSIDE your interval event.
  • Change the text inside the parentheses from "my_data" to "Time vs. Temperature".

microbit = codesters.Microbit() microbit.show_string("hello") data = microbit.get_temp() microbit.show_number(data) data_list = [] time_list = [] my_display = codesters.ScatterPlot(time_list, data_list) time = 0 def interval(): data = microbit.get_temp() data_list.append(data) global time time_list.append(time) my_display.update(time_list, data_list) time += 1 stage.event_interval(interval, 1)