https://sharronsayloveisunderthesky.blogspot.com/2024/06/matplotlib-figure.html
Matplotlib Figure