View on GitHub

mooda

Module for Ocean Observatory Data Analysis - Python package

wf.plot_timebar(keys, ax=None, time_interval_mean=None)

Reference

Make a bar plot of the input keys. The bars are positioned at x with date/time. Their dimensions are given by height.

Parameters

Returns

Example

To reproduce the example, download the NetCDF file here and save it as example.nc in the same python script folder.

import mooda as md
import matplotlib.pyplot as plt

path_netcdf = "example.nc"  # Path of the NetCDF file

wf = md.read_nc_emodnet(path_netcdf)

wf.plot_timebar('TEMP', time_interval_mean='D')
plt.show()

Output:

Plot timebar example

Return to mooda.WaterFrame.