Description
DVC plots commands generate interactive visualizations from your data files. These commands create HTML reports with charts and graphs to help you analyze model performance, training dynamics, and experiment results.Subcommands
plots show
Generate plots from target files or fromplots definitions in dvc.yaml.
Arguments
Plots files or plot IDs from
dvc.yaml to visualize. Shows all plots by default.Options
Special JSON or HTML schema file to inject with the data. See plot templates.
Field name for X axis.
Field name for Y axis.
Provided CSV or TSV datafile does not have a header.
Plot title.
X axis label.
Y axis label.
Directory to save plots to. Defaults to
dvc_plots.Show output in Vega format.
Open plot file directly in the browser.
Custom HTML template for VEGA visualization.
plots diff
Show multiple versions of a plot by overlaying them in a single image.Arguments
Git commits to plot from. Compares workspace with HEAD by default.
Options
Specific plots to visualize. Accepts any file path or plot name from
dvc.yaml file. Shows all tracked plots by default.Special JSON or HTML schema file to inject with the data.
Field name for X axis.
Field name for Y axis.
Provided CSV or TSV datafile does not have a header.
Plot title.
X axis label.
Y axis label.
Directory to save plots to.
Open plot file directly in the browser.
Custom HTML template for VEGA visualization.
plots modify
Modify display properties of data-series plots defined in stages (has no effect on image plots).Arguments
Plots file to set properties for (defined at the stage level).
Options
Plot template to use.
Field name for X axis.
Field name for Y axis.
Plot title.
X axis label.
Y axis label.
Unset one or more display properties.
plots templates
List built-in plots templates or show JSON specification for one.Arguments
Template for which to show JSON specification. List all template names by default.
Examples
Visualizing Training Metrics
Comparing Model Versions
Custom Plot Configuration
Auto-Open in Browser
Supported Data Formats
CSV
CSV
training.csv
JSON
JSON
metrics.json
TSV
TSV
data.tsv
Images
Images
DVC plots also supports image files (PNG, JPEG, SVG) for displaying confusion matrices, visualizations, and other graphics.
Built-in Templates
Linear
Line plot for time series data
Scatter
Scatter plot for correlation analysis
Smooth
Smoothed line plot
Confusion
Confusion matrix heatmap
Bar
Bar chart for categorical data
Custom
Bring your own Vega-Lite spec
Output Structure
When you rundvc plots show, DVC creates:
The output directory can be customized with
-o, --out option or by setting plots.out_dir in DVC config.Use Cases
Training Monitoring
Visualize loss curves, accuracy trends, and other training metrics over time.
Model Comparison
Compare performance metrics across different model architectures or hyperparameters.
A/B Testing
Visualize differences between control and experimental model versions.
Performance Analysis
Create confusion matrices, ROC curves, and precision-recall plots.
Related Commands
dvc metrics- Display metrics in tabular formatdvc params- Track parameter changesdvc exp show- Show experiments with metrics and params