I have the following codes as my figure title:
params_text = r'$\epsilon_1={{{:d}}}, \epsilon_2={{{:d}}}, S_1=10^{{{:d}}}, S_2=10^{{{:d}}}, $'.format(eps1,eps2,int(np.log10(S1)),int(np.log10(S2)))
fig.suptitle('(Tom, 2021) FIG.7: \n'+params_text)
In my figure, I want (Tom,2021) FIG.7:
in the first line of the title and the list of parameters in the second line. The above codes do what I want to do and I'm happy about that.
My question is: how can I break up params_text
in my codes for better readability (I will add a lot more parameters and having everything on one line can be hard to read) without affecting the actual figure title? Normally I can use \
to break up my normal codes to multiple lines, but what if I want to break up that long string variable?