From 5fd72477776031ad57036b84cc5a001e31e535cd Mon Sep 17 00:00:00 2001 From: Midras Lappe <midras.lappe@hs-bochum.de> Date: Fri, 23 Jun 2023 13:24:23 +0200 Subject: [PATCH] =?UTF-8?q?Fenster=20schlie=C3=9Fen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filters.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/filters.py b/filters.py index d6151b9..3b344d5 100644 --- a/filters.py +++ b/filters.py @@ -4,6 +4,7 @@ import pandas as pd import matplotlib.pyplot as plt from collections import deque +currentfig = None def none(info, image, state): if 'bufferOrginal' not in state: @@ -14,7 +15,12 @@ def none(info, image, state): return image, False def plot_points(x, y, px, py): + # currentfig + # if currentfig is not None: + # plt.close(currentfig) + plt.close() fig = plt.figure() + # currentfig = fig ax = fig.add_subplot() ax.scatter(px, py, c='r') ax.plot(x, y) -- GitLab