Reference website:
https://www.scivision.dev/matplotlib-in-cygwin-64-bit/
https://x.cygwin.com/docs/ug/setup.html#setup-cygwin-x-installing
https://x.cygwin.com/docs/ug/overview.html
1. Install cygwin and cygwin/x
Refer to https://x.cygwin.com/docs/ug/setup.html#setup-cygwin-x-installing for cygwin/x installation method
2. Install matplotlib
matplotlib installation reference: https://ravenonhill.blogspot.com/2017/07/cygwin-python3-matplotlib-python3-scilab.html
3. Run the test:
Open the cygwin-x menu item in the start menu, open xWin Server, and then right-click the picture in the lower right corner to open the system tool -XTerm.