Use case
Use scatter plots to compare multiple runs and visualize the performance of an experiment. With a scatter plot, you can:- Plot lines for minimum, maximum, and average values.
- Customize metadata tooltips.
- Control point colors.
- Adjust axis ranges.
- Use a log scale for the axes.
- Configure how the frontier line and related points are labeled and emphasized. See Frontier line display options.
- Add reference lines to mark thresholds or target values on an axis. See Reference line display options.
Example
The following example shows a scatter plot displaying validation accuracy for different models over several weeks of experimentation. The tooltip includes batch size, dropout, and axis values. A line also shows the running average of validation accuracy. See a live example →
Create a scatter plot
To create a scatter plot in the W&B UI:- Navigate to the Workspaces tab.
- In the Charts panel, click the action () menu.
- From the pop-up menu, select Add panels.
- In the Add panels menu, select Scatter plot.
- Set the
xandyaxes to plot the data you want to view. Optionally, set maximum and minimum ranges for your axes or add azaxis. - Click Apply to create the scatter plot.
Frontier line display options
The frontier line on a scatter plot connects the highest and lowest y-axis values observed so far for the data in the plot. You can tune how the line and the surrounding points appear from the plot settings to emphasize the frontier. To configure frontier line display options:- Hover over the scatter plot panel, then click the gear icon to open the panel settings drawer.
- Select the Annotations tab.
- Set the options:
- Show run labels: Toggle whether to show a label with the run name or group name.
- Dim non-frontier points: Toggle whether to reduce the visual weight of points that aren’t on the frontier line so the frontier stands out.
- Click Apply to save your changes.
Reference line display options
A reference line is a horizontal or vertical dashed line drawn at a fixed numeric value on the X or Y axis. Use reference lines to mark thresholds, benchmarks, or target values on a plot. To configure reference lines:- Hover over the scatter plot panel, then click the gear icon to open the panel settings drawer.
- Select the Reference lines tab.
- Click Add reference line.
- Configure the line:
- To choose a color, click the color swatch.
- Select X axis or Y axis from the dropdown.
- Enter a numeric value to draw the line at that point on the axis.
- Optional: Enter a label.
- Repeat to add more lines. A counter next to Add reference line shows how many of the maximum you’ve used.
- Click Apply to save your changes.

- You can add a maximum of five reference lines per plot, counted across both axes combined, not five per axis.
- Only numeric axes support reference lines. Time-based axes don’t. The axis dropdown only lists axes that qualify. If neither the X nor Y axis is numeric, the Reference lines tab displays
Reference lines require a numeric X or Y axis.and you can’t add a line. - On an axis using a log scale, a reference line’s value must be greater than zero.
- Each line renders as a dashed line in its assigned color. The default color is teal.
- The line’s on-chart label shows the value followed by the label text, for example
0.9 - Quality target. If you leave the label empty, the chart shows only the value. The chart truncates this combined label at 35 characters and preserves the full label in the panel configuration. - When lines sit close together, W&B automatically staggers their labels so they don’t overlap.