Plot a sample recording
This tutorial uses a synthetic six-second episode with 181 rows. joint1 is in radians and gripper uses normalized positions. Run the example locally with uv and Python 3.10 or newer.
1. Download the sample and script
Section titled “1. Download the sample and script”In an empty directory, download the sample recording and the plotting script, then extract the ZIP:
curl -fsSLO https://docs.baseline-robotics.com/downloads/recording/sample-recording.zip &&curl -fsSLO https://docs.baseline-robotics.com/downloads/recording/plot_joint.py &&uv run --no-project python -m zipfile -e sample-recording.zip .2. Make the plot
Section titled “2. Make the plot”uv run --no-project plot_joint.py synthetic-episode joint1 --out joint1.svgThe first run installs PyArrow and Matplotlib. The script prints Read 181 rows over 6.000 s (rad); saved joint1.svg. Open joint1.svg in a browser or compare it with the reference plot.
3. Read the columns
Section titled “3. Read the columns”At zero-based row 54, the timestamp is 1.8 seconds and the requested, permitted and measured positions are 0.800000, 0.333333 and 0.295239 rad. The sample row has the rate_limited flag. Use the column definitions to interpret the traces and the chart data to inspect the underlying rows.
Use your own episode
Section titled “Use your own episode”From the directory that contains plot_joint.py, enter an episode directory and a joint listed in its meta.json:
bash -c 'read -r -p "Episode directory: " episode || exit 1read -r -p "Joint name: " joint || exit 1[[ -d $episode && -n $joint ]] && uv run --no-project plot_joint.py "$episode" "$joint" --out joint.svg'The plot leaves null values as gaps. The sample generator recreates the synthetic archive.