added cache length setting

This commit is contained in:
2023-10-27 12:35:04 +02:00
parent 9b3e2c1e01
commit 2a5c471faa
2 changed files with 12 additions and 6 deletions

View File

@@ -39,11 +39,12 @@ def hist(values, bins="auto"):
class Plot0D:
def __init__(self, *args, **kwargs):
def __init__(self, num, *args, **kwargs):
self.fig, axs = plt.subplots(1, 2)
self.ax_time, self.ax_hist = ax_time, ax_hist = axs
self.cache = Cache()
print("cache length", num or "infinite")
self.cache = Cache(num)
lines = ax_time.plot([0], [0])
self.plot_time = lines[0] #TODO: wtf?