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
list
Plots files or plot IDs from
dvc.yaml to visualize. Shows all plots by default.Options
string
Special JSON or HTML schema file to inject with the data. See plot templates.
string
Field name for X axis.
string
Field name for Y axis.
flag
Provided CSV or TSV datafile does not have a header.
string
Plot title.
string
X axis label.
string
Y axis label.
string
Directory to save plots to. Defaults to
dvc_plots.flag
Show output in Vega format.
flag
Open plot file directly in the browser.
string
Custom HTML template for VEGA visualization.
plots diff
Show multiple versions of a plot by overlaying them in a single image.Arguments
list
Git commits to plot from. Compares workspace with HEAD by default.
Options
list
Specific plots to visualize. Accepts any file path or plot name from
dvc.yaml file. Shows all tracked plots by default.string
Special JSON or HTML schema file to inject with the data.
string
Field name for X axis.
string
Field name for Y axis.
flag
Provided CSV or TSV datafile does not have a header.
string
Plot title.
string
X axis label.
string
Y axis label.
string
Directory to save plots to.
flag
Open plot file directly in the browser.
string
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
string
required
Plots file to set properties for (defined at the stage level).
Options
string
Plot template to use.
string
Field name for X axis.
string
Field name for Y axis.
string
Plot title.
string
X axis label.
string
Y axis label.
list
Unset one or more display properties.
plots templates
List built-in plots templates or show JSON specification for one.Arguments
string
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