1

I want to add a title to my plots (in matplotlib) which would display both parameters and their values, something like

f"$\alpha$ = {present value of alpha}, $\beta$ = {present value of beta}"

f-strings won't display latex but will insert the present parameter values into the placeholders; r-strings will do the former but not the latter. Any way around this?

1

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.