import seaborn as sns
import matplotlib.pyplot as plt

df = sns.load_dataset('iris')

print(df.head())

plt.figure(figsize=(6, 4))
plt.hist(df['sepal_length'], bins=10, edgecolor='black')
plt.title("Distribution of Sepal Length")
plt.xlabel("Sepal Length")
plt.ylabel("Frequency")
plt.grid()
plt.show()

plt.figure(figsize=(6, 4))
plt.scatter(df['sepal_length'], df['petal_length'])
plt.title("Sepal Length vs Petal Length")
plt.xlabel("Sepal Length")
plt.ylabel("Petal Length")
plt.grid()
plt.show()

plt.figure(figsize=(7, 5))
sns.heatmap(
    df.select_dtypes('number').corr(),
    annot=True,
    cmap='viridis',
    linewidths=0.5
)

plt.title("Correlation Heatmap")
plt.show()