question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plots: templates option is clunky

See original GitHub issue

yes, it’s more about this command’s interface in this case. Feels like this list {simple,linear,confusion,confusion_normalized,scatter,smooth} will be growing / changing. Why do we have to specify it on the parser level, it’s not very common to limit that large number of targets there.

_Originally posted by @shcheklein in https://github.com/iterative/dvc.org/pull/3691#discussion_r907907003_

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
daavoocommented, Jul 5, 2022

iterative/dvc-render#8 is an example where we would have to update the list of templates in a few places?

I think we should just replace the hardcoded names with something like :

from dvc_render.vega_templates import TEMPLATES
TEMPLATE_CHOICES = [x.default_name for x in TEMPLATES] 
1reaction
paredcommented, Jul 10, 2022

I think that the simplest seems to be just list available templates on dvc plots templates and dvc plots templates {name} would print to stdout. No dumping all templates, no .dvc/plots behavior - just let user do whatever they want. That is simple and easy to understand.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plots show | Data Version Control - DVC
The plot style can be customized with plot templates, using the --template option. To learn more about plots file formats and templates, see...
Read more >
Slow performance when switching between layouts in AutoCAD
Change the Layout Regen Options in AutoCAD. Go to Options > System tab > Layout Regen Options and select Cache model tab and...
Read more >
What's Wrong with C++ Templates?
Templates are a natural match for lists (and container classes in general) because they not only let programmers write one List implementation rather...
Read more >
Plotly 4.8, template not adding image layout when applied
When the template is later applied, in this case through pandas plot with the plotly backend, the image is not added. The image...
Read more >
Enhance and enrich your plots using Graph Template ...
Using basic scatterplot and swimming plot as examples, we will reveal the lack of control resulting from the use of default SAS GTL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found