esmvaltool/diag_scripts/validation.py
def plot_contour(cube, plt_title, file_name):
    """Plot a contour with iris.quickplot (qplot)"""
    if len(cube.shape) == 2:
        qplt.contourf(cube, cmap='RdYlBu_r', bbox_inches='tight')
    else:
        qplt.contourf(cube[0], cmap='RdYlBu_r', bbox_inches='tight')
    plt.title(plt_title)
    plt.gca().coastlines()
    plt.tight_layout()
    plt.savefig(file_name)
    plt.close()
Plot a contour with iris.quickplot (qplot)
Plot a contour with iris.quickplot (qplot)
Plot a contour with iris . quickplot ( qplot )
def plot_contour(cube, plt_title, file_name):
    if len(cube.shape) == 2:
        qplt.contourf(cube, cmap='RdYlBu_r', bbox_inches='tight')
    else:
        qplt.contourf(cube[0], cmap='RdYlBu_r', bbox_inches='tight')
    plt.title(plt_title)
    plt.gca().coastlines()
    plt.tight_layout()
    plt.savefig(file_name)
    plt.close()
def plot_contour ( cube , plt_title , file_name ) : if len ( cube . shape ) == 2 : qplt . contourf ( cube , cmap = 'RdYlBu_r' , bbox_inches = 'tight' ) else : qplt . contourf ( cube [ 0 ] , cmap = 'RdYlBu_r' , bbox_inches = 'tight' ) plt . title ( plt_title ) plt . gca ( ) . coastlines ( ) plt . tight_layout ( ) plt . savefig ( file_name ) plt . close ( )
Plot a contour with iris.quickplot (qplot)
Plot a contour with iris . quickplot ( qplot )
"""Plot a contour with iris.quickplot (qplot)"""
cube
plt_title
file_name