import matplotlib.pyplot as plt
import numpy as np

# y = ax + b
b = 5
a = 3
x = np.arange(-10, 10, 0.1)
print(x)
y = a * x + b
plt.plot(x, y, label=f"y = {a}x + {b}")
plt.legend(loc=2)
plt.axhline(0, color='black')
plt.axvline(0, color='black')
plt.title("demo2 figure")
plt.xlabel("label for x")
plt.ylabel("label for y")
plt.show()
