You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
explore_math/ch2_graphing/temp_graph.py

15 lines
286 B
Python

import numpy as np
import matplotlib.pyplot as plt
nyc_temp = np.array([
53.9, 56.3, 56.4, 53.4, 54.5, 55.8,
56.8, 55.0, 55.3, 54.0, 56.7, 56.4, 57.3
])
plt.plot(nyc_temp, marker="o")
plt.xlabel("Day")
plt.ylabel("Temperature (°F)")
plt.title("NYC Temperatures")
plt.show()