I think the recommended approach is converting the matplotlib figure to an image and putting it inside an html.Img
component. as suggested here: Best way to incorporate matplotlib plot in Dash App - #2 by chriddyp
Also see this Stack Overflow answer: python - Showing a simple matplotlib plot in plotly Dash - Stack Overflow