esmvaltool/diag_scripts/ocean/diagnostic_timeseries.py
def timeplot(cube, **kwargs):
    """
    Make a time series plot

    Needed because iris version 1.13 fails due to the time axis.
    """
    cubedata = np.ma.array(cube.data)
    if len(cubedata.compressed()) == 1:
        plt.axhline(cubedata.compressed(), **kwargs)
        return

    times = diagtools.cube_time_to_float(cube)
    plt.plot(times, cubedata, **kwargs)

    Make a time series plot

    Needed because iris version 1.13 fails due to the time axis.
    
Make a time series plot
Needed because iris version 1.13 fails due to the time axis.
Make a time series plot Needed because iris version 1 . 13 fails due to the time axis .
def timeplot(cube, **kwargs):
    cubedata = np.ma.array(cube.data)
    if len(cubedata.compressed()) == 1:
        plt.axhline(cubedata.compressed(), **kwargs)
        return
    times = diagtools.cube_time_to_float(cube)
    plt.plot(times, cubedata, **kwargs)
def timeplot ( cube , ** kwargs ) : cubedata = np . ma . array ( cube . data ) if len ( cubedata . compressed ( ) ) == 1 : plt . axhline ( cubedata . compressed ( ) , ** kwargs ) return times = diagtools . cube_time_to_float ( cube ) plt . plot ( times , cubedata , ** kwargs )
Make a time series plot
Needed because iris version 1.13 fails due to the time axis.
Make a time series plot Needed because iris version 1 . 13 fails due to the time axis .
"""
    Make a time series plot

    Needed because iris version 1.13 fails due to the time axis.
    """
cube