In this notebook, we will explore other capabilities of the hvPlot ecosystem. The associated functions allow to create plots with many interactive tools and features, including linked panning and brushing, and hover inspectors.
In particular, we will look at the
VectorField method, using the AIMS eReefs database.
Load the required Python libraries¶
First of all, load the necessary libraries. These are the ones we discussed previously:
import os import numpy as np import xarray as xr import cartopy import cartopy.crs as ccrs import cartopy.feature as cfeature from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER cartopy.config['data_dir'] = os.getenv('CARTOPY_DIR', cartopy.config.get('data_dir')) import cmocean import holoviews as hv from holoviews import opts, dim import geoviews as gv import geoviews.feature as gf from cartopy import crs gv.extension('bokeh') import warnings warnings.filterwarnings("ignore", category=RuntimeWarning)