import seaborn as sns
import matplotlib.pyplot as plt
def plot_titanic_survivors():
titanic_data = sns.load_dataset('titanic')
sns.countplot(x='sex', hue='survived', data=titanic_data)
plt.title('Survivors based on Gender in Titanic')
plt.show()
plot_titanic_survivors()