Here is the abstracted problem, every time lst
is different, so I want to do it automatically
import matplotlib.pyplot as plt
import numpy as np
fig=plt.figure()
fig.set_size_inches(8,4)
lst=np.array ([0.1235,0.2322,0.3300])
#how can I directly pass these value to plt.text, without manually input
plt.text(0.05,0.6,r'a=0.124, b=0.232, c=0.330',fontsize=18)
plt.show()