[2Dplot] works, not tested with zoom, though
This commit is contained in:
@@ -430,12 +430,13 @@ class LinePlotter(Plotter):
|
||||
y = self._dataview._buffer[i, int(start):int(end)]
|
||||
|
||||
if len(self.lines) <= i:
|
||||
ll, = self.axis.plot(x, y, label=l, picker=5)
|
||||
ll, = self.axis.plot(x, y, label=l)
|
||||
ll.set_pickradius(5)
|
||||
self.lines.append(ll)
|
||||
else:
|
||||
self.lines[i].set_ydata(y)
|
||||
self.lines[i].set_xdata(x)
|
||||
|
||||
self.axis.legend()
|
||||
self.axis.set_xlim([x[0], x[-1]])
|
||||
|
||||
def plot_array_1d(self, start=0):
|
||||
@@ -446,8 +447,8 @@ class LinePlotter(Plotter):
|
||||
self.axis.set_ylabel(ylabel)
|
||||
self.view_changed.emit()
|
||||
|
||||
def plot_array_2d(self):
|
||||
self.__draw_2d(0, self.maxpoints)
|
||||
def plot_array_2d(self, start=0):
|
||||
self.__draw_2d(start, start + self._segment_length)
|
||||
xlabel = create_label(self.dimensions[self.xdim])
|
||||
ylabel = create_label(self._item)
|
||||
self.axis.set_xlabel(xlabel)
|
||||
|
||||
Reference in New Issue
Block a user