plot_all
cellseg_gsontools.plotting.plot_gdf(gdf, col, ax=None, cmap=None, bin_legends=None, show_legend=True, loc='upper right', figsize=(10, 10), **kwargs)
¶
Plot one gdf wrapper.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gdf |
GeoDataFrame
|
The gdf to plot. |
required |
col |
str
|
The column to highlight. |
required |
ax |
Axes
|
The axes to plot on, by default None. |
None
|
cmap |
str
|
The colormap to use, by default None. |
None
|
bin_legends |
List[str]
|
The bins to use, by default None. |
None
|
show_legend |
bool
|
Whether to show the legend, by default True. |
True
|
loc |
str
|
The location of the legend, by default "upper right". |
'upper right'
|
figsize |
tuple
|
The size of the figure, by default (10, 10). |
(10, 10)
|
**kwargs |
Dict[str, Any]
|
Extra keyword arguments passed to the |
{}
|
Returns:
Type | Description |
---|---|
Axes
|
plt.Axes: The axes used for plotting. |