-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd-ref: plots: flexible plots docs #3691
Conversation
show Generate plots from target files or plots definitions from `dvc.yaml` file. | ||
diff Show multiple versions of plot data by plotting them in a single image. | ||
modify Modify display properties of data-series plot outputs (has no effect on image-type plots). | ||
templates Write built-in plots templates to a directory (.dvc/plots by default). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better to have dvc plots templates
(show available templates, including custom?), dvc plots template --dump <template-name>
dumps it.
(feels like dumping a template is an aux command compared to show / diff and even modify)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can discuss and modify the usage, but I would prefer to avoid it in this PR.
train_classes.csv: predicted_class | ||
test_classes.csv: predicted_class | ||
title: Compare test vs train confusion matrix | ||
template: confusion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does diff look like in this case (unmergable plots)? can you show an example please? just trying to understand the consequences for VS Code / Studio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I would say it's confusing to see rev
as a title a bit. Not related to this PR obviously.
I think it's fine to have a simple case for these plots. I don't it's required or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I will have to fix that. Regretfully, because in the beginning, I did not convert rev
into an anchor, this field will have to stay with us for some time. I should probably be able to remove it from the subtitle though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we think it's useful to include a diff example here (doesn't need to block the PR)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it affect the plots modify
? can I pass to it some extra arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels we need somewhere a better description of the possible structure of the plots
yaml section (table with examples)?
do we need to update the schema file for the dvc.yaml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylistic changes to Synopsis... please apply to content/docs/command-reference/plots/templates.md as well 🙂
For now |
@shcheklein |
Modified the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't need to block this P.R. but would be nice to mention the new plots
section also in https://dvc.org/doc/user-guide/project-structure/pipelines-files
@pared Is it possible to break into multiple PRs? iterative/dvc#7477 alone is a large number of changes. Do we need to combine that, #3295, and #2956? |
@dberenbaum I think that we can split templates docs, thought I don't see why should we split #3295 and #2956 - the change in way of thinking about plots is part of #3295 so I think those two should be part of a single change. |
825a35f
to
f30221f
Compare
5627288
to
de12fcd
Compare
839fd63
to
5da75ed
Compare
* cmd-ref: plots: flexible plots docs Related: iterative/dvc#7477 Related: #2956 * Update content/docs/user-guide/project-structure/dvcyaml-files.md * Apply suggestions from code review * Update content/docs/command-reference/plots/index.md * plots: examples: move to subcommands * plots: refactor top-level plots definition * plots: review refactor * Update content/docs/command-reference/plots/index.md * ref: fix a link (2/2) per #3691 (review) * ref: remove concept of type of metrics * ref: term "plots files" (consistency) * ref: wrap `plots index` usage block * plots: top-level plots edits * plots: improve motivation for top-level plots per #3691 (review) * ref: edit `plots show` desc * ref: return plot template examples from `plots show` to index * guide: move top-lv plot mention from stage entry to desc * ref: clean up new `plots show` examples * ref: more copy edits around plots * Update content/docs/user-guide/project-structure/dvcyaml-files.md * Update content/docs/command-reference/plots/index.md * Update content/docs/command-reference/plots/index.md * Update content/docs/command-reference/plots/index.md * Restyled by prettier Co-authored-by: Paweł Redzyński <pawelredzynski@gmail.com> Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com> Co-authored-by: Jorge Orpinel Perez <jorge@orpinel.com> Co-authored-by: Dave Berenbaum <dave.berenbaum@gmail.com> Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Dave Berenbaum <dave@iterative.ai>
Closing as merged in #3819 |
Related to: iterative/dvc#7477 (iterative/dvc#7086)
Docs for flexible plots.
Added
templates
command reference.Partially solves #2956. - It seems to me that there is no point in differentiating between metrics/plots notation. Plots are no longer special types of output. Main point of the
plots
is to provide visualization. Visualizations can be created from any supported type of data, hence we only need to mention that there exists special type ofoutput
(plots
) That can help with visualizations.Do not merge before: iterative/dvc#7477 is merged.
In review app: https://dvc-org-7086-flexible-p-d0hfxv.herokuapp.com/doc/command-reference/plots
UPDATE: Jump down to #3691 (review).