Untitled
unknown
plain_text
20 days ago
451 B
2
Indexable
import matplotlib.pyplot as plt # Data points for work hours and total product hours = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] TP = [0, 20, 38, 54, 68, 80, 90, 98, 104, 108, 110] # Create the plot plt.figure(figsize=(8, 6)) plt.plot(hours, TP, marker='o', linestyle='-', color='blue') plt.title("Max's Work Hours vs. Total Product") plt.xlabel("Work Hours (h)") plt.ylabel("Total Product (TP)") plt.xticks(hours) plt.grid(True) plt.show()
Editor is loading...
Leave a Comment