Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt

Use this file to discover all available pages before exploring further.

Use scatter plots in W&B to compare runs and visualize relationships between experiment metrics. Scatter plots help you spot trends, outliers, and trade-offs across many runs, which is useful when tuning hyperparameters or comparing model variants.

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.

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 →
Validation accuracy scatter plot

Create a scatter plot

To create a scatter plot in the W&B UI:
  1. Navigate to the Workspaces tab.
  2. In the Charts panel, click the action () menu.
  3. From the pop-up menu, select Add panels.
  4. In the Add panels menu, select Scatter plot.
  5. Set the x and y axes to plot the data you want to view. Optionally, set maximum and minimum ranges for your axes or add a z axis.
  6. Click Apply to create the scatter plot.
The new scatter plot appears in the Charts panel, displaying the data you configured.

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:
  1. Hover over the scatter plot panel, then click the gear icon to open the panel settings drawer.
  2. Select the Annotations tab.
  3. 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.
  4. Click Apply to save your changes.
The scatter plot updates to reflect your annotation choices.