Jed Rembold
January 26, 2026
fitellipse libraries
Matplotlib can generate plots directly:
plt.hist( variable_list,
bins=num_bins )
plt.show()Just use the hist function:
hist( variable_list,
breaks=num_bins )Or, in ggplot
ggplot(data=df,
aes(x=variable)
) +
geom_histogram()Pandas can generate plots directly:
df[column name].plot(kind='kde')
scipy under the hood, so
will need it installedCan also install Seaborn and use its variants of you like
import seaborn as sbn
sbn.kdeplot(df[column name])Just use the plot and
density functions:
plot(density(variable_list))In ggplot:
ggplot(data=df, aes(x=column)) +
geom_density(bw='bcv')'Apogee (km)'
Histogram in Matplotlib
plt.hist2d(xs, ys, bins=20)KDE plot easiest through Seaborn
sbn.kdeplot(x=xs,
y=ys,
fill=True)Histogram through ggplot
ggplot(data=df,
aes(x=xs, y=xs)
) +
geom_bin_2d()KDE plot through ggplot
ggplot(data=df,
aes(x=xs, y=xs)
) +
geom_density_2d_filled()What are asteroids?
