Plots multiple data sources in yaml doesn't work

Hello I’m following a tutorial in the docs and while trying to make plots work I’ve encountered this problem while writing my dvc yaml file.
Im pretty sure the syntax is correct and the dvc version is “DVC version: 2.42.0 (pip)”

image

I also tried this writing:
plots:

-ROC:
        # Configure template and axes.
        x: fpr
        y:
          eval/live/plots/sklearn/roc/train.json: tpr
          eval/live/plots/sklearn/roc/test.json: tpr

Could you elaborate on what error you are getting and from where?

In the first example, plot outputs inside of stages don’t support multiple data sources. They must be “top-level” plots that are separate from your stage outputs. The dvc.yaml should look like:

plots:
  - ROC:
      x: fpr
      y:
        eval/live/plots/sklearn/roc/train.json: tpr
        eval/live/plots/sklearn/roc/test.json: tpr
stages:
...

@mouadAqsone Please don’t hesitate to share your feedback on how we can better clarify this.