human
Can you show me a Python program to limit y axis in Python.
assistant
Here is a Python program to limit y axis in Python

import matplotlib.pyplot as plt

def limit_y_axis():
    """Helper for plotting."""
    plt.ylim(-1, 1)
    plt.xlim(-1, 1)
    plt.grid(color='0.7')
    plt.xlabel('x')
    plt.ylabel('y')
    plt.show()

# Enter the data
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((limit_y_axis()))

#Example Output
# Figure(640x480)
# None

#Remember to inspect code for bugs.