PASO 16 : ¡Buen trabajo! Terminemos nombrando nuestro diagrama de dispersión como algo significativo.

  • En ASUNTO, haga clic en .
  • Luego, arrastre Set Title DENTRO de su evento de intervalo.
  • Cambie el texto entre paréntesis de "my_data" a "Time vs. Temperature" .

To navigate the page using the TAB key, first press ESC to exit the code editor.

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)
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)