I have a small snippet that plots 10 cumulative subplots.I want to introduce a vertical line to indicate the x value where the distribution crosses 80.
The y axis is percentage of product sold cumulative and the x axis is discount percentage varying from 0 to 100
i=1
fig, axes = plt.subplots(ncols=2, nrows=5,figsize=(20,20))
for priceband in new_price_band_gc['price_band'].unique():
plt.subplot(5,2,i)
plt.title(priceband)
plt.xlabel("discount%")
plt.ylabel("Actual GC Value")
x=new_price_band_gc.loc[new_price_band_gc['price_band']==priceband,'discount']
y=np.cumsum(new_price_band_gc.loc[new_price_band_gc['price_band']==priceband,'act_gc'])
plt.axvline(x=0.22058956) ##Change this to a vertical line at 80% for each curve
plt.plot(x,y)
if i<10:
i+=1
else:
i
plt.tight_layout()
plt.show()