(While there are several questions similar to my problem, Almost all of them were related to text-box, legend and annotation.)
Using a loop, I want to show specific information for 32 attributes: Histogram on the left and statistics on the right.
Dealing with just one attribute it's really simple, I set x,y for the text position and that's it:
#Histogram
sns.distplot(n1, kde=True)#fit=stats.beta)
plt.title('Histogram')
plt.xlabel('Duration')
plt.xticks(np.arange(0, max(n1)+1, 0.5))
#Statistics (There are 13 in total)
plt.text(1.85,5,'Standard Time: %6.4f'%(ST.iloc[j,0]))
plt.text(1.85,5,'Median: %6.4f'%(medmed))
plt.text(1.85,4.65,'Variance from ST: %6.2f '%(Totvarval))
plt.text(1.85,4.3,'Standard Deviation: %6.4f'%(np.std(n1)))
The problem is when I create the loop for all the attributes, given the different range of each, the text positions changes relatively causing such a result:
I know there should be a way to fix the coordination but I couldn't find it in the documentation.