Skip to content

Instantly share code, notes, and snippets.

@rsalaza4
Created May 28, 2024 19:19
Show Gist options
  • Save rsalaza4/377ff08f8100588fa4652fac0045457c to your computer and use it in GitHub Desktop.
Save rsalaza4/377ff08f8100588fa4652fac0045457c to your computer and use it in GitHub Desktop.
# Build seaborn replot
g = sns.relplot(
data=data,
x="Replicate",
y="Value",
hue="Operator",
style="Operator",
col="Part",
col_wrap=5,
aspect=0.7
)
# Add subtitle
g.fig.suptitle("Gage Run Chart by Part, Operator", fontsize=16)
# Add horizontal reference line, color, dashes style and axis labels
g.map(plt.axhline, y=data["Value"].mean(), color=".7", dashes=(2, 1), zorder=0).set_axis_labels("Operator", "Value");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment