Fix: roboticstoolbox-python plot() unexpected keyword argument ax
Fix TypeError: plot() got an unexpected keyword argument ax in roboticstoolbox-python. DHRobot.plot has no ax — use env = robot.plot(..., backend="matplotlib") then env.ax for UR5 and puma560.
In this article
- The Ownership Inversion: Why This API Feels Backward
- Check Your Version and Plot Signature
- The Two Plotting Backends
- Puma560: Fixing the ax Parameter Error
- Basic Matplotlib Plot of a DHRobot
- Using DHRobot.plot() in Jupyter or Google Colab
- Animating a Trajectory with the Matplotlib Backend
- Compositing the Robot Plot With Other Subplots
- Low-Level: Passing Your Own Axes via the Matplotlib Backend Class
- Common Errors and Fixes
- Saving the Plot to a File
- Headless Server Workflow
- Forward Kinematics + Plot: End-Effector Pose Workflow
- Comparing Multiple Configurations Side by Side
- Next Steps