From 58972ffa91a75a42f8014456c8e637b4a2d58c5d Mon Sep 17 00:00:00 2001 From: Hugo Stephens Date: Thu, 8 Mar 2018 19:54:50 +0000 Subject: [PATCH] Added min size of window to avoid error on resize --- robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py index ad6b501..9d84608 100755 --- a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py +++ b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py @@ -8,8 +8,8 @@ import pyglet #import math -import time -import serial +#import time +#import serial import numpy import os import platform @@ -66,6 +66,7 @@ class Plot(pyglet.window.Window): def __init__(self, series): """Setup a the details of a plot, and create a corresponding window""" pyglet.window.Window.__init__(self, resizable=True) + self.set_minimum_size(320,320) self.series = series self.font = 'Arkhip' self.margins = (0.09, 0.08) # Fractions of window size -- libgit2 0.21.2