How to embed matplotlib?

How to embed matplotlib with:

  • cx_freeze,
  • python 3.8.3 and
  • Windows 10?

Script (1.1 KB)

running build
running build_exe
C:\Users\Dodo\AppData\Local\Programs\Python\Python38\lib\importlib\ MatplotlibDeprecationWarning:
The mpl_toolkits.axes_grid module was deprecated in Matplotlib 2.1 and will be removed two minor releases later. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist, which provide the same functionality instead.
parent = import(parent_name, fromlist=[‘path’])
error: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to install matplotlib from source to get the test data.

Thank you.

Try :
packages = [‘matplotlib.backends.backend_wxagg’]