add_decomposition_legend!
add_decomposition_legend!
Add a decomposition legend to the plot.
add_decomposition_legend!
add_decomposition_legend!(
gp::GridPosition,
channel_names::AbstractVector{<:String};
colors=wong_colors()
) -> Legend
Add a legend to a decomposition plot.
The decomposition plot can be created using plot_decomposition
or plot_decomposition!
.
Arguments
gp::GridPosition
: Position to plot the legend into.channel_names::AbstractVector{<:String}
: Names of the transmission channels.
Keyword Arguments
colors
: Colors for the decomposition bars (default: Wong colors).
Returns
- A
Legend
object that can be further manipulated.