I am facing an issue in assigning a numerical value to the annotated text (mean and standard deviation in this case) using plt.text command.
Since I have six subplots, I
Try the following:
for i, _ in enumerate(var): plt.text(X_cord,Y_cord, r'$\mu=%s$' % (Mean[i]), fontsize=14)
I prefer to use the string method.format:
.format
for i, _ in enumerate(var): plt.text(X_cord,Y_cord, r'$\mu={}$'.format(Mean[i]), fontsize=14)