I am trying to plot age distribution regarding survived, sex, class variables.
from matplotlib import pyplot
import seaborn
titanic= seaborn.load_dataset("titanic")
g = seaborn.catplot(data = titanic, x = 'survived', y = 'age',
hue = 'sex', split = True,
row='class', kind ='violin', legend = False)
Result is shown in the picture below.
If you see the age distribution of the first subplot where I draw a circle around, you can see that it is plotted on negative number which doesn't make sense.
How can I solve this problem? Age data does not contain any negative numbers.