I created a graphic calculator with numpy and matplotlib. It asks the user how many graphs he wants to draw. Then it accepts that much input by using a for loop. Then it draws the graphs with the same loop. The problem is how can I intersect these graphs, and put a point or something to the intersection? Can someone please help me with that? Also, I am new to this area, so you might see some terrible mistakes? Sorry for that :)
print("How many equations do you want to draw: ")
numofeq = input()
r1= int(input("Enter range-1: "))
r2= int(input("Enter range-2: "))
for i in range(int(numofeq)):
print("Equation")
eq = input()
x = np.array(range(int(r1), int(r2+1)))
y = eval(bytes([ord(p) for p in eq]))
plt.plot(x, y)
ax = plt.gca()
ax.spines['top'].set_color('none')
ax.spines['bottom'].set_position('zero')
ax.spines['left'].set_position('zero')
ax.spines['right'].set_color('none')
plt.grid(True)
plt.show()