plots.styles.legends
Attributes
Functions
|
Produce a colorbar for a given layer. |
|
Produce a disjoint legend for a given layer. |
Module Contents
- plots.styles.legends.DEFAULT_LEGEND_LABEL = ''
- plots.styles.legends.colorbar(layer, *args, shrink=0.8, aspect=35, ax=None, **kwargs)
Produce a colorbar for a given layer.
- Parameters:
layer (earthkit.maps.charts.layers.Layer) – The layer for which to produce a colorbar.
**kwargs – Any keyword arguments accepted by matplotlib.figures.Figure.colorbar.
- plots.styles.legends.disjoint(layer, *args, location='bottom', frameon=False, **kwargs)
Produce a disjoint legend for a given layer.
- Parameters:
layer (earthkit.maps.charts.layers.Layer) – The layer for which to produce a colorbar.
**kwargs – Any keyword arguments accepted by matplotlib.figures.Figure.legend.