Files
caplot/plot1d.py
2021-05-08 13:55:56 +02:00

16 lines
274 B
Python

from matplotlib import pyplot as plt
class Plot1D:
def __init__(self, *args, **kwargs):
lines = plt.plot(*args, **kwargs)
assert len(lines) == 1
self.plot = lines[0] #TODO: wtf?
def set(self, value):
self.plot.set_ydata(value)