-
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
plots: make linear and scatter interactive #4975
Conversation
@@ -107,13 +107,15 @@ def _check_field_exists(data, field): | |||
raise NoFieldInDataError(field) | |||
|
|||
|
|||
class DefaultLinearTemplate(Template): | |||
class DefaultTemplate(Template): |
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.
I would consider dropping this one at some point, for sake of interactive linear
to become the default, though one thing that is stopping me from proposing it right away is the simplicity of the default plot, which definitely makes the learning curve for custom plots smoother.
"width": 300, | ||
"height": 300, |
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.
Since we do not store those values anymore in json files, they are not straightforward to edit, without creating a custom template, so I though making them a little bigger will be a good thing.
@@ -300,27 +302,95 @@ class NormalizedConfusionTemplate(Template): | |||
} | |||
|
|||
|
|||
class DefaultScatterTemplate(Template): |
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.
Default
in the name does not make sense, its not default in any way other than, all plots prepared by us are "default" for dvc.
Hi! I'm just trying to understand what this means. I guess just changes to those 2 plots templates? Is it worth mentioning something about this in https://dvc.org/doc/command-reference/plots#plot-templates ? Thanks @pared |
@jorgeorpinel the only change is that the plots are interactive now, (hover the mouse over examples) i don't think any change is required. |
Got it. I didn't know what you meant by "interactive". OK, thanks |
β 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. π
Related to #4902
This change improves user experience for plots.
linear
template