From 5868f07b6e4ffa22c1717a562e6fa2e2d4bac8e5 Mon Sep 17 00:00:00 2001 From: simondlevy Date: Sat, 4 Aug 2018 18:48:54 -0400 Subject: [PATCH] Added matplotlib.use('TkAgg') to help with Raspberry Pi --- examples/pltslamshow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/pltslamshow.py b/examples/pltslamshow.py index 47eacdc..5905df3 100644 --- a/examples/pltslamshow.py +++ b/examples/pltslamshow.py @@ -21,6 +21,10 @@ along with this code. If not, see . ROBOT_HEIGHT_MM = 500 ROBOT_WIDTH_MM = 300 +# This helps with Raspberry Pi +import matplotlib +matplotlib.use('TkAgg') + import matplotlib.pyplot as plt import matplotlib.cm as colormap from math import sin, cos, radians