Using different programs for diagrams within one single document can be a never ending story of unmatching graphics. For example, matplotlib used a different interpolation method for colormaps than pgfplots. Disregarding alpha components, the following script produces a matching colormap. Just specify the matplotlib colormap name as command line argument […]