We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plots: replace --show-json with --show-vega
Requested by @dmpetrov for cml. `--show-vega` should require a target and return a filled vega template. `--show-json` is not needed, let's delete it.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `dvc/command/plots.py`
Content:
```
1 import argparse
2 import logging
3 import os
4 
5 from dvc.command.base import CmdBase, append_doc_link, fix_subparsers
6 from dvc.exceptions import DvcException
7 from dvc.utils import format_link
8 
9 logger = logging.getLogger(__name__)
10 
11 PAGE_HTML = """<!DOCTYPE html>
12 <html>
13 <head>
14     <title>DVC Plot</title>
15     <script src="https://cdn.jsdelivr.net/npm/vega@5.10.0"></script>
16     <script src="https://cdn.jsdelivr.net/npm/vega-lite@4.8.1"></script>
17     <script src="https://cdn.jsdelivr.net/npm/vega-embed@6.5.1"></script>
18 </head>
19 <body>
20     {divs}
21 </body>
22 </html>"""
23 
24 DIV_HTML = """<div id = "{id}"></div>
25 <script type = "text/javascript">
26     var spec = {vega_json};
27     vegaEmbed('#{id}', spec);
28 </script>"""
29 
30 
31 class CmdPlots(CmdBase):
32     def _func(self, *args, **kwargs):
33         raise NotImplementedError
34 
35     def run(self):
36         try:
37             plots = self._func(
38                 targets=self.args.targets,
39                 template=self.args.template,
40                 x_field=self.args.x,
41                 y_field=self.args.y,
42                 csv_header=not self.args.no_csv_header,
43                 title=self.args.title,
44                 x_title=self.args.xlab,
45                 y_title=self.args.ylab,
46             )
47 
48             if self.args.show_json:
49                 import json
50 
51                 logger.info(json.dumps(plots))
52                 return 0
53 
54             divs = [
55                 DIV_HTML.format(id=f"plot{i}", vega_json=plot)
56                 for i, plot in enumerate(plots.values())
57             ]
58             html = PAGE_HTML.format(divs="\n".join(divs))
59             path = self.args.out or "plots.html"
60 
61             with open(path, "w") as fobj:
62                 fobj.write(html)
63 
64             logger.info(
65                 "file://{}".format(os.path.join(self.repo.root_dir, path))
66             )
67 
68         except DvcException:
69             logger.exception("")
70             return 1
71 
72         return 0
73 
74 
75 class CmdPlotsShow(CmdPlots):
76     def _func(self, *args, **kwargs):
77         return self.repo.plots.show(*args, **kwargs)
78 
79 
80 class CmdPlotsDiff(CmdPlots):
81     def _func(self, *args, **kwargs):
82         return self.repo.plots.diff(*args, revs=self.args.revisions, **kwargs)
83 
84 
85 def add_parser(subparsers, parent_parser):
86     PLOTS_HELP = (
87         "Generating plots for metrics stored in structured files "
88         "(JSON, CSV, TSV)."
89     )
90 
91     plots_parser = subparsers.add_parser(
92         "plots",
93         parents=[parent_parser],
94         description=append_doc_link(PLOTS_HELP, "plots"),
95         help=PLOTS_HELP,
96         formatter_class=argparse.RawDescriptionHelpFormatter,
97     )
98     plots_subparsers = plots_parser.add_subparsers(
99         dest="cmd",
100         help="Use `dvc plots CMD --help` to display command-specific help.",
101     )
102 
103     fix_subparsers(plots_subparsers)
104 
105     SHOW_HELP = "Generate a plots image file from a metrics file."
106     plots_show_parser = plots_subparsers.add_parser(
107         "show",
108         parents=[parent_parser],
109         description=append_doc_link(SHOW_HELP, "plots/show"),
110         help=SHOW_HELP,
111         formatter_class=argparse.RawDescriptionHelpFormatter,
112     )
113     plots_show_parser.add_argument(
114         "-t",
115         "--template",
116         nargs="?",
117         default=None,
118         help=(
119             "Special JSON or HTML schema file to inject with the data. "
120             "See {}".format(
121                 format_link("https://man.dvc.org/plots#plot-templates")
122             )
123         ),
124     )
125     plots_show_parser.add_argument(
126         "-o", "--out", default=None, help="Destination path to save plots to.",
127     )
128     plots_show_parser.add_argument(
129         "-x", default=None, help="Field name for x axis."
130     )
131     plots_show_parser.add_argument(
132         "-y", default=None, help="Field name for y axis."
133     )
134     plots_show_parser.add_argument(
135         "--no-csv-header",
136         action="store_true",
137         default=False,
138         help="Required when CSV or TSV datafile does not have a header.",
139     )
140     plots_show_parser.add_argument(
141         "--show-json",
142         action="store_true",
143         default=False,
144         help="Show output in JSON format.",
145     )
146     plots_show_parser.add_argument("--title", default=None, help="Plot title.")
147     plots_show_parser.add_argument(
148         "--xlab", default=None, help="X axis title."
149     )
150     plots_show_parser.add_argument(
151         "--ylab", default=None, help="Y axis title."
152     )
153     plots_show_parser.add_argument(
154         "targets",
155         nargs="*",
156         help="Metrics files to visualize. Shows all plots by default.",
157     )
158     plots_show_parser.set_defaults(func=CmdPlotsShow)
159 
160     PLOTS_DIFF_HELP = (
161         "Plot differences in metrics between commits in the DVC "
162         "repository, or between the last commit and the workspace."
163     )
164     plots_diff_parser = plots_subparsers.add_parser(
165         "diff",
166         parents=[parent_parser],
167         description=append_doc_link(PLOTS_DIFF_HELP, "plots/diff"),
168         help=PLOTS_DIFF_HELP,
169         formatter_class=argparse.RawDescriptionHelpFormatter,
170     )
171     plots_diff_parser.add_argument(
172         "-t",
173         "--template",
174         nargs="?",
175         default=None,
176         help=(
177             "Special JSON or HTML schema file to inject with the data. "
178             "See {}".format(
179                 format_link("https://man.dvc.org/plots#plot-templates")
180             )
181         ),
182     )
183     plots_diff_parser.add_argument(
184         "--targets",
185         nargs="*",
186         help="Metrics file to visualize. Shows all plots by default.",
187     )
188     plots_diff_parser.add_argument(
189         "-o", "--out", default=None, help="Destination path to save plots to.",
190     )
191     plots_diff_parser.add_argument(
192         "-x", default=None, help="Field name for x axis."
193     )
194     plots_diff_parser.add_argument(
195         "-y", default=None, help="Field name for y axis."
196     )
197     plots_diff_parser.add_argument(
198         "--no-csv-header",
199         action="store_true",
200         default=False,
201         help="Provided CSV ot TSV datafile does not have a header.",
202     )
203     plots_diff_parser.add_argument(
204         "--show-json",
205         action="store_true",
206         default=False,
207         help="Show output in JSON format.",
208     )
209     plots_diff_parser.add_argument("--title", default=None, help="Plot title.")
210     plots_diff_parser.add_argument(
211         "--xlab", default=None, help="X axis title."
212     )
213     plots_diff_parser.add_argument(
214         "--ylab", default=None, help="Y axis title."
215     )
216     plots_diff_parser.add_argument(
217         "revisions", nargs="*", default=None, help="Git commits to plot from",
218     )
219     plots_diff_parser.set_defaults(func=CmdPlotsDiff)
220
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/dvc/command/plots.py b/dvc/command/plots.py
--- a/dvc/command/plots.py
+++ b/dvc/command/plots.py
@@ -33,6 +33,16 @@
         raise NotImplementedError
 
     def run(self):
+        if self.args.show_vega:
+            if not self.args.targets:
+                logger.error("please specify a target for `--show-vega`")
+                return 1
+            if len(self.args.targets) > 1:
+                logger.error(
+                    "you can only specify one target for `--show-vega`"
+                )
+                return 1
+
         try:
             plots = self._func(
                 targets=self.args.targets,
@@ -45,10 +55,9 @@
                 y_title=self.args.ylab,
             )
 
-            if self.args.show_json:
-                import json
-
-                logger.info(json.dumps(plots))
+            if self.args.show_vega:
+                target = self.args.targets[0]
+                logger.info(plots[target])
                 return 0
 
             divs = [
@@ -138,10 +147,10 @@
         help="Required when CSV or TSV datafile does not have a header.",
     )
     plots_show_parser.add_argument(
-        "--show-json",
+        "--show-vega",
         action="store_true",
         default=False,
-        help="Show output in JSON format.",
+        help="Show output in VEGA format.",
     )
     plots_show_parser.add_argument("--title", default=None, help="Plot title.")
     plots_show_parser.add_argument(
@@ -201,10 +210,10 @@
         help="Provided CSV ot TSV datafile does not have a header.",
     )
     plots_diff_parser.add_argument(
-        "--show-json",
+        "--show-vega",
         action="store_true",
         default=False,
-        help="Show output in JSON format.",
+        help="Show output in VEGA format.",
     )
     plots_diff_parser.add_argument("--title", default=None, help="Plot title.")
     plots_diff_parser.add_argument(

{"golden_diff": "diff --git a/dvc/command/plots.py b/dvc/command/plots.py\n--- a/dvc/command/plots.py\n+++ b/dvc/command/plots.py\n@@ -33,6 +33,16 @@\n         raise NotImplementedError\n \n     def run(self):\n+        if self.args.show_vega:\n+            if not self.args.targets:\n+                logger.error(\"please specify a target for `--show-vega`\")\n+                return 1\n+            if len(self.args.targets) > 1:\n+                logger.error(\n+                    \"you can only specify one target for `--show-vega`\"\n+                )\n+                return 1\n+\n         try:\n             plots = self._func(\n                 targets=self.args.targets,\n@@ -45,10 +55,9 @@\n                 y_title=self.args.ylab,\n             )\n \n-            if self.args.show_json:\n-                import json\n-\n-                logger.info(json.dumps(plots))\n+            if self.args.show_vega:\n+                target = self.args.targets[0]\n+                logger.info(plots[target])\n                 return 0\n \n             divs = [\n@@ -138,10 +147,10 @@\n         help=\"Required when CSV or TSV datafile does not have a header.\",\n     )\n     plots_show_parser.add_argument(\n-        \"--show-json\",\n+        \"--show-vega\",\n         action=\"store_true\",\n         default=False,\n-        help=\"Show output in JSON format.\",\n+        help=\"Show output in VEGA format.\",\n     )\n     plots_show_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n     plots_show_parser.add_argument(\n@@ -201,10 +210,10 @@\n         help=\"Provided CSV ot TSV datafile does not have a header.\",\n     )\n     plots_diff_parser.add_argument(\n-        \"--show-json\",\n+        \"--show-vega\",\n         action=\"store_true\",\n         default=False,\n-        help=\"Show output in JSON format.\",\n+        help=\"Show output in VEGA format.\",\n     )\n     plots_diff_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n     plots_diff_parser.add_argument(\n", "issue": "plots: replace --show-json with --show-vega\nRequested by @dmpetrov for cml. `--show-vega` should require a target and return a filled vega template. `--show-json` is not needed, let's delete it.\n", "before_files": [{"content": "import argparse\nimport logging\nimport os\n\nfrom dvc.command.base import CmdBase, append_doc_link, fix_subparsers\nfrom dvc.exceptions import DvcException\nfrom dvc.utils import format_link\n\nlogger = logging.getLogger(__name__)\n\nPAGE_HTML = \"\"\"<!DOCTYPE html>\n<html>\n<head>\n    <title>DVC Plot</title>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega@5.10.0\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@4.8.1\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@6.5.1\"></script>\n</head>\n<body>\n    {divs}\n</body>\n</html>\"\"\"\n\nDIV_HTML = \"\"\"<div id = \"{id}\"></div>\n<script type = \"text/javascript\">\n    var spec = {vega_json};\n    vegaEmbed('#{id}', spec);\n</script>\"\"\"\n\n\nclass CmdPlots(CmdBase):\n    def _func(self, *args, **kwargs):\n        raise NotImplementedError\n\n    def run(self):\n        try:\n            plots = self._func(\n                targets=self.args.targets,\n                template=self.args.template,\n                x_field=self.args.x,\n                y_field=self.args.y,\n                csv_header=not self.args.no_csv_header,\n                title=self.args.title,\n                x_title=self.args.xlab,\n                y_title=self.args.ylab,\n            )\n\n            if self.args.show_json:\n                import json\n\n                logger.info(json.dumps(plots))\n                return 0\n\n            divs = [\n                DIV_HTML.format(id=f\"plot{i}\", vega_json=plot)\n                for i, plot in enumerate(plots.values())\n            ]\n            html = PAGE_HTML.format(divs=\"\\n\".join(divs))\n            path = self.args.out or \"plots.html\"\n\n            with open(path, \"w\") as fobj:\n                fobj.write(html)\n\n            logger.info(\n                \"file://{}\".format(os.path.join(self.repo.root_dir, path))\n            )\n\n        except DvcException:\n            logger.exception(\"\")\n            return 1\n\n        return 0\n\n\nclass CmdPlotsShow(CmdPlots):\n    def _func(self, *args, **kwargs):\n        return self.repo.plots.show(*args, **kwargs)\n\n\nclass CmdPlotsDiff(CmdPlots):\n    def _func(self, *args, **kwargs):\n        return self.repo.plots.diff(*args, revs=self.args.revisions, **kwargs)\n\n\ndef add_parser(subparsers, parent_parser):\n    PLOTS_HELP = (\n        \"Generating plots for metrics stored in structured files \"\n        \"(JSON, CSV, TSV).\"\n    )\n\n    plots_parser = subparsers.add_parser(\n        \"plots\",\n        parents=[parent_parser],\n        description=append_doc_link(PLOTS_HELP, \"plots\"),\n        help=PLOTS_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_subparsers = plots_parser.add_subparsers(\n        dest=\"cmd\",\n        help=\"Use `dvc plots CMD --help` to display command-specific help.\",\n    )\n\n    fix_subparsers(plots_subparsers)\n\n    SHOW_HELP = \"Generate a plots image file from a metrics file.\"\n    plots_show_parser = plots_subparsers.add_parser(\n        \"show\",\n        parents=[parent_parser],\n        description=append_doc_link(SHOW_HELP, \"plots/show\"),\n        help=SHOW_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_show_parser.add_argument(\n        \"-t\",\n        \"--template\",\n        nargs=\"?\",\n        default=None,\n        help=(\n            \"Special JSON or HTML schema file to inject with the data. \"\n            \"See {}\".format(\n                format_link(\"https://man.dvc.org/plots#plot-templates\")\n            )\n        ),\n    )\n    plots_show_parser.add_argument(\n        \"-o\", \"--out\", default=None, help=\"Destination path to save plots to.\",\n    )\n    plots_show_parser.add_argument(\n        \"-x\", default=None, help=\"Field name for x axis.\"\n    )\n    plots_show_parser.add_argument(\n        \"-y\", default=None, help=\"Field name for y axis.\"\n    )\n    plots_show_parser.add_argument(\n        \"--no-csv-header\",\n        action=\"store_true\",\n        default=False,\n        help=\"Required when CSV or TSV datafile does not have a header.\",\n    )\n    plots_show_parser.add_argument(\n        \"--show-json\",\n        action=\"store_true\",\n        default=False,\n        help=\"Show output in JSON format.\",\n    )\n    plots_show_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n    plots_show_parser.add_argument(\n        \"--xlab\", default=None, help=\"X axis title.\"\n    )\n    plots_show_parser.add_argument(\n        \"--ylab\", default=None, help=\"Y axis title.\"\n    )\n    plots_show_parser.add_argument(\n        \"targets\",\n        nargs=\"*\",\n        help=\"Metrics files to visualize. Shows all plots by default.\",\n    )\n    plots_show_parser.set_defaults(func=CmdPlotsShow)\n\n    PLOTS_DIFF_HELP = (\n        \"Plot differences in metrics between commits in the DVC \"\n        \"repository, or between the last commit and the workspace.\"\n    )\n    plots_diff_parser = plots_subparsers.add_parser(\n        \"diff\",\n        parents=[parent_parser],\n        description=append_doc_link(PLOTS_DIFF_HELP, \"plots/diff\"),\n        help=PLOTS_DIFF_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_diff_parser.add_argument(\n        \"-t\",\n        \"--template\",\n        nargs=\"?\",\n        default=None,\n        help=(\n            \"Special JSON or HTML schema file to inject with the data. \"\n            \"See {}\".format(\n                format_link(\"https://man.dvc.org/plots#plot-templates\")\n            )\n        ),\n    )\n    plots_diff_parser.add_argument(\n        \"--targets\",\n        nargs=\"*\",\n        help=\"Metrics file to visualize. Shows all plots by default.\",\n    )\n    plots_diff_parser.add_argument(\n        \"-o\", \"--out\", default=None, help=\"Destination path to save plots to.\",\n    )\n    plots_diff_parser.add_argument(\n        \"-x\", default=None, help=\"Field name for x axis.\"\n    )\n    plots_diff_parser.add_argument(\n        \"-y\", default=None, help=\"Field name for y axis.\"\n    )\n    plots_diff_parser.add_argument(\n        \"--no-csv-header\",\n        action=\"store_true\",\n        default=False,\n        help=\"Provided CSV ot TSV datafile does not have a header.\",\n    )\n    plots_diff_parser.add_argument(\n        \"--show-json\",\n        action=\"store_true\",\n        default=False,\n        help=\"Show output in JSON format.\",\n    )\n    plots_diff_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n    plots_diff_parser.add_argument(\n        \"--xlab\", default=None, help=\"X axis title.\"\n    )\n    plots_diff_parser.add_argument(\n        \"--ylab\", default=None, help=\"Y axis title.\"\n    )\n    plots_diff_parser.add_argument(\n        \"revisions\", nargs=\"*\", default=None, help=\"Git commits to plot from\",\n    )\n    plots_diff_parser.set_defaults(func=CmdPlotsDiff)\n", "path": "dvc/command/plots.py"}], "after_files": [{"content": "import argparse\nimport logging\nimport os\n\nfrom dvc.command.base import CmdBase, append_doc_link, fix_subparsers\nfrom dvc.exceptions import DvcException\nfrom dvc.utils import format_link\n\nlogger = logging.getLogger(__name__)\n\nPAGE_HTML = \"\"\"<!DOCTYPE html>\n<html>\n<head>\n    <title>DVC Plot</title>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega@5.10.0\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@4.8.1\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@6.5.1\"></script>\n</head>\n<body>\n    {divs}\n</body>\n</html>\"\"\"\n\nDIV_HTML = \"\"\"<div id = \"{id}\"></div>\n<script type = \"text/javascript\">\n    var spec = {vega_json};\n    vegaEmbed('#{id}', spec);\n</script>\"\"\"\n\n\nclass CmdPlots(CmdBase):\n    def _func(self, *args, **kwargs):\n        raise NotImplementedError\n\n    def run(self):\n        if self.args.show_vega:\n            if not self.args.targets:\n                logger.error(\"please specify a target for `--show-vega`\")\n                return 1\n            if len(self.args.targets) > 1:\n                logger.error(\n                    \"you can only specify one target for `--show-vega`\"\n                )\n                return 1\n\n        try:\n            plots = self._func(\n                targets=self.args.targets,\n                template=self.args.template,\n                x_field=self.args.x,\n                y_field=self.args.y,\n                csv_header=not self.args.no_csv_header,\n                title=self.args.title,\n                x_title=self.args.xlab,\n                y_title=self.args.ylab,\n            )\n\n            if self.args.show_vega:\n                target = self.args.targets[0]\n                logger.info(plots[target])\n                return 0\n\n            divs = [\n                DIV_HTML.format(id=f\"plot{i}\", vega_json=plot)\n                for i, plot in enumerate(plots.values())\n            ]\n            html = PAGE_HTML.format(divs=\"\\n\".join(divs))\n            path = self.args.out or \"plots.html\"\n\n            with open(path, \"w\") as fobj:\n                fobj.write(html)\n\n            logger.info(\n                \"file://{}\".format(os.path.join(self.repo.root_dir, path))\n            )\n\n        except DvcException:\n            logger.exception(\"\")\n            return 1\n\n        return 0\n\n\nclass CmdPlotsShow(CmdPlots):\n    def _func(self, *args, **kwargs):\n        return self.repo.plots.show(*args, **kwargs)\n\n\nclass CmdPlotsDiff(CmdPlots):\n    def _func(self, *args, **kwargs):\n        return self.repo.plots.diff(*args, revs=self.args.revisions, **kwargs)\n\n\ndef add_parser(subparsers, parent_parser):\n    PLOTS_HELP = (\n        \"Generating plots for metrics stored in structured files \"\n        \"(JSON, CSV, TSV).\"\n    )\n\n    plots_parser = subparsers.add_parser(\n        \"plots\",\n        parents=[parent_parser],\n        description=append_doc_link(PLOTS_HELP, \"plots\"),\n        help=PLOTS_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_subparsers = plots_parser.add_subparsers(\n        dest=\"cmd\",\n        help=\"Use `dvc plots CMD --help` to display command-specific help.\",\n    )\n\n    fix_subparsers(plots_subparsers)\n\n    SHOW_HELP = \"Generate a plots image file from a metrics file.\"\n    plots_show_parser = plots_subparsers.add_parser(\n        \"show\",\n        parents=[parent_parser],\n        description=append_doc_link(SHOW_HELP, \"plots/show\"),\n        help=SHOW_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_show_parser.add_argument(\n        \"-t\",\n        \"--template\",\n        nargs=\"?\",\n        default=None,\n        help=(\n            \"Special JSON or HTML schema file to inject with the data. \"\n            \"See {}\".format(\n                format_link(\"https://man.dvc.org/plots#plot-templates\")\n            )\n        ),\n    )\n    plots_show_parser.add_argument(\n        \"-o\", \"--out\", default=None, help=\"Destination path to save plots to.\",\n    )\n    plots_show_parser.add_argument(\n        \"-x\", default=None, help=\"Field name for x axis.\"\n    )\n    plots_show_parser.add_argument(\n        \"-y\", default=None, help=\"Field name for y axis.\"\n    )\n    plots_show_parser.add_argument(\n        \"--no-csv-header\",\n        action=\"store_true\",\n        default=False,\n        help=\"Required when CSV or TSV datafile does not have a header.\",\n    )\n    plots_show_parser.add_argument(\n        \"--show-vega\",\n        action=\"store_true\",\n        default=False,\n        help=\"Show output in VEGA format.\",\n    )\n    plots_show_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n    plots_show_parser.add_argument(\n        \"--xlab\", default=None, help=\"X axis title.\"\n    )\n    plots_show_parser.add_argument(\n        \"--ylab\", default=None, help=\"Y axis title.\"\n    )\n    plots_show_parser.add_argument(\n        \"targets\",\n        nargs=\"*\",\n        help=\"Metrics files to visualize. Shows all plots by default.\",\n    )\n    plots_show_parser.set_defaults(func=CmdPlotsShow)\n\n    PLOTS_DIFF_HELP = (\n        \"Plot differences in metrics between commits in the DVC \"\n        \"repository, or between the last commit and the workspace.\"\n    )\n    plots_diff_parser = plots_subparsers.add_parser(\n        \"diff\",\n        parents=[parent_parser],\n        description=append_doc_link(PLOTS_DIFF_HELP, \"plots/diff\"),\n        help=PLOTS_DIFF_HELP,\n        formatter_class=argparse.RawDescriptionHelpFormatter,\n    )\n    plots_diff_parser.add_argument(\n        \"-t\",\n        \"--template\",\n        nargs=\"?\",\n        default=None,\n        help=(\n            \"Special JSON or HTML schema file to inject with the data. \"\n            \"See {}\".format(\n                format_link(\"https://man.dvc.org/plots#plot-templates\")\n            )\n        ),\n    )\n    plots_diff_parser.add_argument(\n        \"--targets\",\n        nargs=\"*\",\n        help=\"Metrics file to visualize. Shows all plots by default.\",\n    )\n    plots_diff_parser.add_argument(\n        \"-o\", \"--out\", default=None, help=\"Destination path to save plots to.\",\n    )\n    plots_diff_parser.add_argument(\n        \"-x\", default=None, help=\"Field name for x axis.\"\n    )\n    plots_diff_parser.add_argument(\n        \"-y\", default=None, help=\"Field name for y axis.\"\n    )\n    plots_diff_parser.add_argument(\n        \"--no-csv-header\",\n        action=\"store_true\",\n        default=False,\n        help=\"Provided CSV ot TSV datafile does not have a header.\",\n    )\n    plots_diff_parser.add_argument(\n        \"--show-vega\",\n        action=\"store_true\",\n        default=False,\n        help=\"Show output in VEGA format.\",\n    )\n    plots_diff_parser.add_argument(\"--title\", default=None, help=\"Plot title.\")\n    plots_diff_parser.add_argument(\n        \"--xlab\", default=None, help=\"X axis title.\"\n    )\n    plots_diff_parser.add_argument(\n        \"--ylab\", default=None, help=\"Y axis title.\"\n    )\n    plots_diff_parser.add_argument(\n        \"revisions\", nargs=\"*\", default=None, help=\"Git commits to plot from\",\n    )\n    plots_diff_parser.set_defaults(func=CmdPlotsDiff)\n", "path": "dvc/command/plots.py"}]}