A have produced a boxplot with Facetgrid in seaborn the following way
# Import the dataset
tips = sns.load_dataset(\"tips\")
# Plot using Facegrid, separated by
There is axhline
and hlines
. Simple example:
chart = sns.relplot(x="x", y="y", kind="line", data=df)
chart.axes[0][0].axhline(y = 10, color='black', linewidth=2, alpha=.7)
chart.axes[0][0].hlines( y = 20, color='black', linewidth=2, alpha=.7,
xmin = 30, xmax = 50)
Seems like hlines
allows for min-max (documentation) but axhline
doesn't.