Searborn
Countplot
source: seaborn.pydata.org
import seaborn as sns
sns.set_theme(style="darkgrid") titanic = sns.load_dataset("titanic") ax = sns.countplot(x="class", data=titanic)
|
Title
fig, ax = plt.subplots() ax.set(title='Points vs. Assists')
ax.set_title("Title",fontsize=50)
|
Axis
Axis text rotation
fig, ax = plt.subplots() ax.set_xticklabels(ax.get_xticklabels(),rotation = 30)
|
Labels
Reference: armatita; 2016
fig, ax = plt.subplots() ax.set_xlabel("X Label",fontsize=30)
|
Limits
fig, ax = plt.subplots() ax.set_xlim(0, 1) ax.set_ylim(0, 1)
|
Ledgend
remove
sns.scatterplot(y = s_y, x = s_x, hue = cat, legend = False)
plt.legend([],[], frameon=False)
|