plotting
Plotting utilities.
make_colourmap(labels, cmap='jet')
Create a dictionary of colours (used for visualising instances).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
labels
|
dict | list | tuple
|
A dictionary of labels. |
required |
cmap
|
str
|
Colourmap. Defaults to "jet". |
'jet'
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Dictionary of class/colour associations. |
plot_metadata(gdf, ax=None)
Plot the metadata from a GeoDataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gdf
|
GeoDataFrame
|
The GeoDataFrame containing the metadata. |
required |
ax
|
The axes to plot on. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
|
The axes with the plotted metadata. |