the code below plots the data with the marker as a green spot. BUT I want the marker to be the actual value of y. So instead of the green dots the marker would be 10, 22.5, 43.34. Anyone done this please?
import numpy as np
import matplotlib.pyplot as plt
x = [ 10,20,30]
y = [ 10,22.5 ,43.34 ]
x_new = 100
y_new = np.interp(x_new, x, y)
print(y_new)
plt.plot(x, y, "og-");
plt.show()
