# imports y datos
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
tips = sns.load_dataset('tips')
#sns.set(style='dark', palette='dark', font_scale=1.5)
sns.barplot(x = ['a','b', 'c'],y=[2,6,9])
plt.show()
#CON ESTILOS
sns.set(style='dark', palette='dark', font_scale=1)
sns.barplot(x = ['a','b', 'c'],y=[2,6,9])
plt.show()
sns.stripplot(data=tips, x='day', y='total_bill', hue='sex')
plt.show()
import warnings as wrn
wrn.filterwarnings('ignore')
sns.swarmplot(data=tips, x='day', y='total_bill', hue='sex', dodge=True)
plt.show()
import warnings as wrn
wrn.filterwarnings('ignore')
sns.boxplot(data=tips, x='day', y='total_bill', hue='sex', dodge=True)
sns.swarmplot(data=tips, x='day', y='total_bill', hue='sex', dodge=True)
plt.show()
sns.violinplot(data=tips, x='day', y='total_bill', hue='sex')
plt.show()
#split
sns.violinplot(data=tips, x='day', y='total_bill', hue='sex', split=True)
plt.show()
sns.catplot(data=tips, x='day', y='total_bill', hue='sex', split=True,kind='violin', col='time')
plt.show()
sns.pairplot(data=tips)
# Eliminamos gráficas repetidas
sns.pairplot(data=tips, corner=True, hue='time')
plt.show()