Using matplotlib in 3D Slicer

Hello every teachers:
when i use matplotlib in 3D Slicer and some errors happened.how do i solve this problem

You can do something like this instead:

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html?highlight=matplotlib#using-matplotlib

ok, i will try,thank you