added cache length setting
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user