-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Initial support for flexible plots #7477
Conversation
5cbe84f
to
0ea16fc
Compare
This change might end up the ordering of plots handled in #5009. Writing it down for future reference |
fb228ed
to
c466bb6
Compare
18a12e3
to
4d50d5a
Compare
ad1e6aa
to
44bd33d
Compare
5283563
to
e95edc7
Compare
plot_datapoints.extend(dps) | ||
renderer_id = plot_id | ||
if "title" not in final_props: | ||
final_props["title"] = renderer_id |
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.
Similar to stripping redundant info from the legend, it would be nice to strip dvc.yaml::
or other path info from plots IDs in the title unless there is a conflict. Alternatively, that info could be shown in a subtitle or some other way to make it less distracting.
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.
When an explicit title:
is set, should we also include the path somewhere, at least when they is a conflict? Right now you can have plots in two different directories with title: Accuracy
and there is no way to distinguish them in the html.
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.
Good point, ill look into that
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.
Ok, so in this case, we could relatively simple include that by modyfing dvc-render
. (It would be backward compatible). I propose to do it after the release.
This comment was marked as outdated.
This comment was marked as outdated.
Should targets include any plot key so that it's possible to do |
189fd84
to
f14ec12
Compare
This comment was marked as outdated.
This comment was marked as outdated.
As of today we can address the plots by: regarding non-dvc configs ( |
One more thing to do: update the help text for |
2965d6c
to
ae54957
Compare
2fbab97
to
498089a
Compare
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
63582e6
to
134a762
Compare
134a762
to
ad4ef9f
Compare
Related: iterative/dvc#7477 Related: iterative#2956
ad4ef9f
to
a834fb0
Compare
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
Related: iterative/dvc#7477 Related: iterative#2956
* 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 <[email protected]> Co-authored-by: Jorge Orpinel <[email protected]> Co-authored-by: Jorge Orpinel Perez <[email protected]> Co-authored-by: Dave Berenbaum <[email protected]> Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Dave Berenbaum <[email protected]>
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏
Closes #7086