[text] Econ

Viewer

  1. import matplotlib.pyplot as plt
  2.  
  3. # Data for SRATC for one, two, and three factories
  4. q = [25, 50, 75, 100, 125, 150]
  5. sratc_1 = [260, 200, 160, 200, 280, 400]
  6. sratc_2 = [330, 240, 160, 160, 240, 330]
  7. sratc_3 = [400, 280, 200, 160, 200, 260]
  8.  
  9. # Plot SRATC curves
  10. plt.plot(q, sratc_1, label='One Factory', marker='o')
  11. plt.plot(q, sratc_2, label='Two Factories', marker='o')
  12. plt.plot(q, sratc_3, label='Three Factories', marker='o')
  13.  
  14. plt.title("Average Total Cost for Scooter’s Scooters")
  15. plt.xlabel("Quantity of Scooters (Q)")
  16. plt.ylabel("Average Total Cost (ATC)")
  17. plt.legend()
  18. plt.grid(True)
  19. plt.show()
  20.  

Editor

You can edit this paste and save as new:


File Description
  • Econ
  • Paste Code
  • 17 Apr-2024
  • 622 Bytes
You can Share it: