ch
unknown
python
6 days ago
985 B
3
Indexable
Never
# Re-importing required libraries and executing the graph generation code import matplotlib.pyplot as plt # Data for January and February months = ["January", "February"] production_units = [20000, 25000] variable_costs = [50_000 + 20_000, 62_500 + 25_000] # raw materials + labor for both months fixed_costs = [12_000 + 16_000 + 2_000, 12_000 + 16_000 + 2_000] # fixed costs remain the same # Total costs total_costs = [variable_costs[0] + fixed_costs[0], variable_costs[1] + fixed_costs[1]] # Plotting the graph plt.figure(figsize=(8, 6)) plt.plot(months, variable_costs, label="Variable Costs", marker='o', color="blue") plt.plot(months, fixed_costs, label="Fixed Costs", marker='o', color="red") plt.plot(months, total_costs, label="Total Costs", marker='o', color="green") # Adding labels and title plt.title("ALASKA Manufacturing - Monthly Production Costs (Jan & Feb)") plt.xlabel("Months") plt.ylabel("Cost ($)") plt.grid(True) plt.legend() # Show the graph plt.show()
Leave a Comment