How to output matplotlib chart built by module function?

I’m using a module that has a function that outputs a chart, but calling the function in st.write() returns “none”. Any ideas on how to display a chart generated by a module function?