Skip to content
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

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

pared
Copy link
Contributor

@pared pared commented Nov 26, 2020

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.



@@ -107,13 +107,15 @@ def _check_field_exists(data, field):
raise NoFieldInDataError(field)


class DefaultLinearTemplate(Template):
class DefaultTemplate(Template):
Copy link
Contributor Author

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.

Comment on lines +117 to +118
"width": 300,
"height": 300,
Copy link
Contributor Author

@pared pared Nov 26, 2020

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):
Copy link
Contributor Author

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.

@pared pared added enhancement Enhances DVC ui user interface / interaction labels Nov 26, 2020
@pared pared merged commit f6f18bc into iterative:master Dec 1, 2020
@jorgeorpinel
Copy link
Contributor

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

@pared
Copy link
Contributor Author

pared commented Dec 5, 2020

@jorgeorpinel the only change is that the plots are interactive now, (hover the mouse over examples) i don't think any change is required.

@jorgeorpinel
Copy link
Contributor

hover the mouse over examples

Got it. I didn't know what you meant by "interactive". OK, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC ui user interface / interaction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants