I have some stock data and I plotted the data index = x-axis
, price = y-axis
and now after calculating I have found an array of price i.e sub array of price. I want to highlight the points in the array on the graph
I have tried markvery()
documentation but cant understand its working.
Here is my code
from matplotlib
import pyplot as plt
x =[ 1,2,3,4,5,6,7] # array to be plotted
y=[100,111,112,111,112,113,114] # array to be plotted
subArray = [111,114] # array to be highlighted
plt.plot(x,y)
plt.show()
Any Help would be appreciated