Replies: 7 comments
-
@Suor, are you talking about having plot type and templates in something like |
Beta Was this translation helpful? Give feedback.
-
@Suor The main reason why it's hard to save the plot alongside other elements of the repository is that we can plot unknown number of revisions. For We can have plot params specified in The other thing that comes to my mind is requiring user to provide revisions which should be included and stored in dvc.yaml too, with some sensible defaults, like last 3 commits/ tags. But that seems like bad user experience: needing to update [EDIT] |
Beta Was this translation helpful? Give feedback.
-
@skshetry in #3807 we only mark plot data files as plots, which is confusing, while being useful for plot data files collection. To actually see a plot one still needs to specify some params. @pared specifying revisions is fine, i.e. we simply build the same plot for different revisions/version of same data. Custom template with hardcoded params can provide this functionality, but this is a misuse, which fails to reuse templates properly. The plot is a collection of those params passed to command line including template. |
Beta Was this translation helpful? Give feedback.
-
Agree, I got carried away with this one. @Suor |
Beta Was this translation helpful? Give feedback.
-
@pared this is possible approach. There is a usual discrepancy though - if we store plots within git then from which revision do we take its description? |
Beta Was this translation helpful? Give feedback.
-
@Suor good point. I would say that we should go with latest revision in time, with current version of plot (even if uncommited) having priority. |
Beta Was this translation helpful? Give feedback.
-
Now we have plot data and plot templates, the plot itself is a result of some command line call and defined by its options. To have some sensible plot by default we need to hardcode some things like axes in the default plot template, which is awkward.
So I propose that we should have those concepts separated codified and documented:
The issue with the first two is that they are intermixed both conceptually and codewise, I created #3818 to track that. The issue with the plot itself is that it's ephemeral - only exists as a cli command.
Providing a concept of plot, somehow saved alongside repo, will helps us show more sensible plots by default, by name, share them within a team or reuse in external tools, i.e. CI or Viewer.
This issue is open for discussion.
Beta Was this translation helpful? Give feedback.
All reactions