weather.py 293 B

1234567891011
  1. import weather
  2. import matplotlib.pyplot as plt
  3. reports = weather.get_weather()
  4. temperatures = []
  5. t2 = []
  6. for report in reports:
  7. temperatures.append(report['Data']['Temperature']['Avg Temp'])
  8. t2.append(report['Data']['Temperature']['Min Temp'])
  9. plt.scatter(temperatures, t2)
  10. plt.show()