Skip to content Skip to sidebar Skip to footer

How To Use Scientific Notation In Pairplot (seaborn)

Is there a way to force scientific notation using Seaborn's Pairplot? I'm hoping for some consistency between plots (examples below). I've found suggestions for other seaborn plots

Solution 1:

You need to apply your formatter to each of the axes created by pairplot. actually, the axes on the edge would be sufficient, but it's easier to apply the same thing to all axes equally. I would do:

for ax in g.axes.flatten():
    ax.ticklabel_format(style='sci', scilimits=(0,0), axis='both')

Post a Comment for "How To Use Scientific Notation In Pairplot (seaborn)"