day_numbers = [1,2,3,4,5,6,7]
cars_in_parking_lot = [5,6,4,2,1,7,8]
import matplotlib.pyplot as plt
#day_numbers on the x axis, and cars_in_parking_lot on the y axis.
plt.plot(day_numbers, cars_in_parking_lot)
plt.show()
Make a simple line plot with Matplotlib.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.