nwm_eval.create_plots.add_shared_legend#

nwm_eval.create_plots.add_shared_legend(fig, axes, dataset_names, palette)[source]#

Add a shared legend to the figure.

Parameters:
  • fig – The figure object to which the legend will be added.

  • axes – A list of axes objects from which individual legends will be removed.

  • dataset_names – A list of dataset names to be included in the legend.

  • palette – A dictionary mapping dataset names to colors, used for creating legend handles.

Returns:

None