0

"""

data= np.array([[0.802,0.73,0.503],[0.659,0.824,0.584],[0.567,0.676,0.57],[1.1,1.13,1.28]])
data_mean= data.mean(axis=1)
data_std=np.std(data, axis=1)
xpos_labels=["label1","label2", "label3","label4"]
xpos= np.arange(len(xpos_labels))
plt.bar(xpos, data_mean, color="white",edgecolor='black', yerr= data_std,capsize=10, ecolor="black")
plt.xticks(xpos,xpos_labels, size=12)
plt.show()

""" This is the graph I want

I want the graphs like the above image but, the bars are only plotting the means, not showing the "data" points from the data array

dialga
  • 11
  • 3
  • `df = pd.DataFrame(data.T, columns=["label1", "label2", "label3", "label4"]); sns.barplot(data=data, alpha=0.5); sns.stripplot(data=data)` – JohanC Jan 15 '22 at 18:07

0 Answers0