Untitled
unknown
plain_text
3 years ago
730 B
6
Indexable
# SRAS.py
import matplotlib.pyplot as plt
def plot_sras():
# Set the x-axis values to the range of potential output levels
x = range(100, 200)
# Set the y-axis values to the corresponding cost levels
y = [100 + 0.5 * (output - 100) for output in x]
# Add a vertical line at the natural level of output
plt.axvline(x=100, color='grey', linestyle='dashed')
# Add a horizontal line at the potential cost level
plt.axhline(y=100, color='grey', linestyle='dashed')
# Plot the SRAS curve
plt.plot(x, y)
# Add labels and show the plot
plt.xlabel('Output')
plt.ylabel('Cost')
plt.title('Short Run Aggregate Supply')
plt.show()
if __name__ == '__main__':
plot_sras()
Editor is loading...