def __init__(self, buffer_len=None, **kwargs): LinePlot.__init__(self, **kwargs) self._y_buffer = UnlimitedRecordBuffer() if buffer_len is None else RecordBuffer(buffer_len) self._x_buffer = UnlimitedRecordBuffer() if buffer_len is None else RecordBuffer(buffer_len) self._first_update = True self._first_plot = True self._last_data = None self._ends = None
def __init__(self, max_history=8, horizontal_alignment='left', vertical_alignment='bottom', size='medium'): """ :param horizontal_alignment: {'left', 'center', 'right'} :param vertical_alignment: {'top', 'center', 'bottom', 'baseline'} :param size: [size in points | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" ] :return: """ self._buffer = RecordBuffer(buffer_len=max_history, initial_value='') self._max_history = 10 self._text_plot = None self.horizontal_alignment = horizontal_alignment self.vertical_alignment = vertical_alignment self.size = size self._x_offset = { 'left': 0.05, 'center': 0.5, 'right': 0.95 }[self.horizontal_alignment] self._y_offset = { 'bottom': 0.05, 'center': 0.5, 'top': 0.95 }[self.vertical_alignment]
def __init__(self, buffer_len=None, **kwargs): """ :param buffer_len: An integar to keep a fixed-length window, or None to keep an expanding buffer :param kwargs: :return: """ LinePlot.__init__(self, **kwargs) self._buffer = UnlimitedRecordBuffer() if buffer_len is None else RecordBuffer(buffer_len) self.x_data = np.arange(-buffer_len+1, 1) if buffer_len is not None else None
def __init__(self, buffer_len=None, **kwargs): LinePlot.__init__(self, add_end_markers=True, **kwargs) self._y_buffer = UnlimitedRecordBuffer( ) if buffer_len is None else RecordBuffer(buffer_len) self._x_buffer = UnlimitedRecordBuffer( ) if buffer_len is None else RecordBuffer(buffer_len)
def __init__(self, buffer_len=100, **kwargs): ImagePlot.__init__(self, **kwargs) self._buffer = RecordBuffer(buffer_len)