Meet Seaborn
Why Seaborn
Matplotlib vs Seaborn
import matplotlib.pyplot as plt
import pandas as pd
fg, ax = plt.subplots()
mydt = pd.read_csv("https://path/to/data.csv")
ax.violinplot(mydt["axi_label"], vert=False)
plt.show()
# Import the necessary libraries
import matplotlib.pyplot as plt
import seaborn as sns
mydt = sns.load_dataset("data")
sns.violinplot(x = "axi_label", data=mydt)
plt.show()
No comments:
Post a Comment