Tuesday 22 September 2020

seaborn 8 point plot

 import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from scipy import signal
sns.set(style="darkgrid")

titanic = sns.load_dataset("titanic")
titanic.head()



sns.barplot(x="sex", y="survived", hue="class", data=titanic)
sns.catplot(x="sex", y="survived", hue="class", kind="point", data=titanic)

sns.catplot(x="class", y="survived", hue="sex",
            palette={"male": "g", "female": "m"},
            markers=["^", "o"], linestyles=["-", "--"],
            kind="point", data=titanic)
reference:

No comments:

Post a Comment