Titanic Fare hist

https://app.dataquest.io/m/186/feature-preparation%2C-selection-and-engineering/6/engineering-a-new-feature-using-binning

survived = train[train["Survived"] == 1]
died = train[train["Survived"] == 0]
survived["Fare"].plot.hist(alpha=0.5,color='red',bins=20)
died["Fare"].plot.hist(alpha=0.5,color='blue',bins=20)
plt.legend(['Survived','Died'])
plt.show()

What I expected to happen:

I am trying to plot the histogram on the page for Fare Features but it gives me error , I don’t know why & it print out a figure but in not a good way
What actually happened:

error : An int or float in the interval [0,1]

error1 error2 ]