code: def plotMatches2(listofNValues, errors,
                   listOfScales, scaleErrors,
                   fileName = "images/scalar_matches.pdf"):
    
    w, h = figaspect(0.4)
    fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(w,h))
  
    plotMatches(listofNValues, errors, fileName=None, fig=fig, ax=ax1)
    plotScaledMatches(listOfScales, scaleErrors, fileName=None, fig=fig, ax=ax2)
  
    plt.savefig(fileName)
    plt.close()
docs: Plot two figures side by side in an aspect ratio appropriate for the paper.