pypsa.plot.add_legend_lines#
- pypsa.plot.add_legend_lines(ax, sizes, labels, colors=None, patch_kw=None, legend_kw=None)#
Add a legend for lines and links.
- Parameters:
ax (matplotlib ax)
sizes (list-like, float) – Size of the line reference; for example [3, 2, 1]
labels (list-like, str) – Label of the line reference; for example [“30 GW”, “20 GW”, “10 GW”]
colors (list-like, str) – Color of the line reference; for example [“red, “green”, “blue”]
patch_kw (defaults to {}) – Keyword arguments passed to plt.Line2D
legend_kw (defaults to {}) – Keyword arguments passed to ax.legend