bagan batang horizontal dengan laut

import seaborn as sns
import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(10,10))

sns.set_color_codes("pastel")
# where df is a dataframe with two columns "X-DATA" and "Y-DATA"
sns.barplot(x="X-DATA", y="Y-DATA", data=df, orient = 'h', color="goldenrod", label="Some Label")

ax.legend(ncol=2, loc="lower right", frameon=True)
ax.set(ylabel="Y-Label",xlabel="X-Label")
ax.legend()
sns.despine(left=True, bottom=True)
Tense Tarantula