Skip to content
Snippets Groups Projects
Unverified Commit 5a15d8b0 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

use "main" as the default legend name

parent efe479ce
Branches
Tags
No related merge requests found
......@@ -306,7 +306,7 @@ def plot(
info(f"plotting graph {i}")
line = _plot_single(g, i, ax)
legend = g.get("legend", None)
legend = g.get("legend", "main" if "name" in g else None)
if legend is not None:
debug(f"adding legend of graph {i}")
if legend not in legends:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment