Skip to content

Allow multiple plots from one plot file #6316

@mattlbeck

Description

@mattlbeck

Consider a mock dvc.yaml such as:

stages:
    A:
        cmd: ...
        plots:
            - metrics.csv:
                x: x
                y: y1
            - metrics.csv:
                x: x
                y: y2

When using dvc plots show, DVC will only show one (the last) plot. The fix is to split the one metrics file into multiple metrics files with the same x but different y variables. This feels pretty inconvenient for metrics that are related in their independent variable, and so can be stored in the same table and file.

On the surface I don't see any reason why a specified plot artifact can only be used for one plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions