Scatterplots with many ticks on the y-axis have a large whitespace on the top and on the bottom as you can see with the gridlines. How to remove whitespace on top and bottom of seaborn scatterplot?
The code for a minimal working example:
import matplotlib.pyplot as plt
import seaborn as sns
data = sns.load_dataset("car_crashes")
plt.figure(figsize=(5, 15))
sns.set_style("whitegrid")
sns.scatterplot(
data=data,
x='alcohol',
y='abbrev',
size='ins_losses',
legend=False,
)
plt.show()

