pasztora
8/1/2019 - 12:47 PM

Pointplot with Seaborn

# Making multiple point plots with sorted values and selecting the top 10 values
import seaborn as sns

g = sns.PairGrid(data=df2.sort_values("Total 2'FL [kg]", ascending=False).head(10), x_vars=df2.columns[[15, 16, 12, 4]], y_vars=["Batch ID"])
g.map(sns.stripplot, orient="h", palette="Blues_d", linewidth=0.5, edgecolor="w")

for ax in g.axes.flat:
    ax.xaxis.grid(False)
    ax.yaxis.grid(True)
sns.despine(left=True, bottom=True)