My code looks like this:
price = np.array(df.price)
low_price = np.array(df['mid price'])
price
is equal to: [nan,nan, 2, 3, nan,nan, 1]
low_price
is equla to : [1, 2, 2, 3, 3, 4, 1]
When I plot them:
plt.plot(low_price, 'k', linewidth=2)
plt.plot(price, 'y', linewidth=2)
They are plotted on the same line with different colors, but how can I change the X axis as well? I have no clue.. thanks!
This is more or less related to that question: Matplotlib: Changing the color of an axis
But I would like to change the color only for specific data points.