"matplotlib" library is outdated, could we load external one instead?

In MacOS ParaView 5.7.0:

import matplotlib; matplotlib.__version__

'1.1.1'

From PYTHONPATH:

python2.7 -c "import matplotlib; print (matplotlib.__version__)"

2.2.4

I tried to change import paths order by ParaView segfaults in this case. Some suggestions?

It looks like we have matplotlib 3.1.1 in the Python3 binaries. Since the Python2 binaries are on their way out, I’m just going to let them at 1.1.1.