2D density plot using pandas and seaborn

2.7k Views Asked by At

I'm trying to plot a heatmap like:

Text

(https://seaborn.pydata.org/generated/seaborn.kdeplot.html - last plot on the page)

But when I try this with my code I get:

enter image description here

My Pandas dataframe exists of two cols (x and y - both int64) and a number of rows. :

enter image description here

My code:

sns.kdeplot(data=dataFrame, fill=True, thresh=0, levels=100, cmap="mako", cbar=True)

My question is now how do I get rid of the contours, fill the background an make a smooth colorbar on the side?

0

There are 0 best solutions below