Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
730 B
1
Indexable
Never
# 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()