diff --git a/filters.py b/filters.py
index d6151b9e24a7e276a92ded7562b078aa18ba2f63..3b344d54852ebfb819fc864940e4fefefc59837f 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)