mpl2qgis See script below. Make sure the Python file is executable. Then: $ ./mpl2qgis.py viridis bone This writes a file colourmaps.xml. Result: