Thanks for posting your question in the Microsoft Q&A forum.
This issue is often related to missing dependencies or an incompatible environment setup.
Ensure that your Python environment has all the necessary dependencies installed. You can create a virtual environment and install the required packages using a requirements.txt
file or a conda
environment file.
Sometimes, compatibility issues arise from using the latest versions of packages. Try specifying an older, stable version of matplotlib
that is known to work with your setup.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful