Skip to content Skip to sidebar Skip to footer

Seaborn Pairwise Matrix Of Hexbin Jointplots

I am trying to produce a matrix of pairwise plots comparing distributions (something like this). Since I have many points I want to use a hexbin plot to reduce time and plot comple

Solution 1:

See the last example in the tutorial on using custom functions with FacetGrid, which I'll reproduce here:

def hexbin(x, y, color, **kwargs):
    cmap = sns.light_palette(color, as_cmap=True)
    plt.hexbin(x, y, gridsize=15, cmap=cmap, **kwargs)

g = sns.FacetGrid(tips, hue="time", col="time", size=4)
g.map(hexbin, "total_bill", "tip", extent=[0, 50, 0, 10])

enter image description here

Post a Comment for "Seaborn Pairwise Matrix Of Hexbin Jointplots"