Plots not generated from conversion from .py to .exe

A script is created to generate the output as matplotlib plots, when the user loads the text file(which contains the data).
I have run the script and working perfectly which includes plots generation.
But, since the script will be used by multiple people, I want to convert from .py to .exe.
Unfortunately, when we open the .exe, it will ask for user input as intended but the output plots are not generated.
My question is, if we run the script individually, plots are displayed, but after conversion to .exe no output plots are displayed.