Skip to content

plots: support multiple Y fields? [qa] #4255

@jorgeorpinel

Description

@jorgeorpinel

Let's say I have a tabular plots file plot.csv:

h1,h2,h3
1,1,0
2,2,0
3,4,-1
4,8,7

and I want to overlay all 3 Hs in a single graph. I can't. I have to pick one at a time, e.g.:

$ dvc plots show -y h2 plot.csv

In fact even with plots diff there's no way to visualize these columns in a single graph (the file would have to be split into 3, each one versioned in a different commit). So what if -y simply accepted multiple field names (or plots diff accepted multiple-y flags)? E.g.:

$ dvc plots show -y h1,h2,h3 plot.csv
# or
$ dvc plots show -y h1 -y h2 -y h3 plot.csv

In fact this could also apply to -x. But it could only be done with one or the other, not both (to keep things relatively simple).

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responsewe are waiting for your reply, please respond! :)discussionrequires active participation to reach a conclusionfeature requestRequesting a new featurep3-nice-to-haveIt should be done this or next sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions