April 2020
Intermediate to advanced
294 pages
7h 53m
English
Matplotlib has several different charts, styles, and options that we could use to graph our data in real time, but the ones that we are going to use are the pyplot and the animation features. pyplot allows us to create the standard xy dataset plot, while the animation module allows us to periodically update the plot with new data that is coming into the application. In order to use these modules, we need to add them to our application using the following imports:
import matplotlib.pyplot as pltimport matplotlib.animation as animation
Next, we want to write the code that will display each dataset, temperature, and humidity on separate figures. In order to do this, we are going to use the following ...
Read now
Unlock full access