rcatool.plot.plots.custom_legend
- rcatool.plot.plots.custom_legend(colors, labels, linestyles=None)[source]
Creates a list of matplotlib Patch objects that can be passed to the legend(…) function to create a custom legend.
- Parameters:
colors (list) – A list of colors, one for each entry in the legend. You can also include a linestyle, for example: ‘k–’
labels (list) – A list of labels, one for each entry in the legend.