Added matplotlib.use('TkAgg') to help with Raspberry Pi

This commit is contained in:
simondlevy
2018-08-04 18:48:54 -04:00
parent 1b121d6246
commit 5868f07b6e

View File

@@ -21,6 +21,10 @@ along with this code. If not, see <http://www.gnu.org/licenses/>.
ROBOT_HEIGHT_MM = 500 ROBOT_HEIGHT_MM = 500
ROBOT_WIDTH_MM = 300 ROBOT_WIDTH_MM = 300
# This helps with Raspberry Pi
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import matplotlib.cm as colormap import matplotlib.cm as colormap
from math import sin, cos, radians from math import sin, cos, radians