Matplotlib in Windows Subsystem for Linux

To use Matplotlib on WSL, first setup Anaconda Python on WSL.

conda install matplotlib

As in general, to speed up plotting when display of plots is not needed, use .savefig() by beginning the Python program code:

import matplotlib


you should see agg printed. Figure can then be saved to disk without displaying them on screen.