Hi friends.I am practicing tutorial and I faced one code for doing one plot with all data like this:
#load the binning analysis for the absolute value of the magnetization
binning = pyalps.loadBinningAnalysis(pyalps.getResultFiles(prefix='param'),'|Magnetization|')
binning = pyalps.flatten(binning)
#make one plot with all data
for dataset in binning:
dataset.props['label'] = 'L='+str(dataset.props['L'])
plt.figure()
plt.xlabel('binning level')
plt.ylabel('Error of |Magnetization|')
pyalps.plot.plot(binning)
plt.legend()
plt.show()
Now I have 2 question:
1. I can not understand what is the meaning of : " dataset.props['label'] = 'L='+str(dataset.props['L'])",what is its meaning?