def ql_patchplot(ax,vals,plottitle,grid,heatmap=None):
    """
    Make patch plot of specific metrics provided in configuration file

    Args:
        ax: matplotlib subplot
        vals: QA metric to be plotted
        plottitle: plot title from configuration file
        grid: shape of patch plot
    Optional:
        heat: specify color of heatmap (must conform to matplotlib)

    Returns:
        matplotlib sublot containing plotted metrics
    """
    #- Setup title and tick parameters
    ax.set_title(plottitle,fontsize=10)
    ax.tick_params(axis='x',labelsize=10,labelbottom=False)
    ax.tick_params(axis='y',labelsize=10,labelleft=False)

    #- Add optional arguments
    if heatmap: cmap = heatmap
    else: cmap = 'OrRd'

    #- Generate patch plot
    patch=ax.pcolor(vals.reshape(grid[0],grid[1]),cmap=cmap)

    return patch