Skip to main content
Create a multi-line custom chart with wandb.plot.line_series(). Go to the project page to view the line chart. To add a legend, include the keys argument in wandb.plot.line_series(). For example:
with wandb.init(project="my_project") as run:
    run.log(
        {
            "my_plot": wandb.plot.line_series(
                xs=x_data, ys=y_data, keys=["metric_A", "metric_B"]
            )
        }
    )
For more details about multi-line plots, see the basic charts documentation under the Multi-line tab.
Experiments