22 super(FullSizeDataPlot, self).
__init__(parent)
37 handles, labels = self._canvas.axes.get_legend_handles_labels()
39 hl = sorted(zip(handles, labels), key=operator.itemgetter(1))
40 handles, labels = zip(*hl)
41 self._canvas.axes.legend(handles, labels, loc=
'lower right')
45 We fix the y axis and continually resize the x axis to encapsulate 46 the entire domain, range of the battery profile. 48 @Todo : the domain is simply the data value, we could use 50 self._canvas.axes.grid(
True, color=
'gray')
53 for curve
in self._curves.values():
54 data_x, data_y, plot, min_max_y = curve
58 xmax = max(xmax, data_x[-1])
61 self._canvas.axes.set_xbound(lower=0, upper=xmax)
64 self._canvas.axes.set_ybound(lower=self.
_ymin, upper=self.
_ymax)
69 for curve
in self._curves.values():
70 data_x, data_y, plot, min_max_y = curve
71 plot.set_data(numpy.array(data_x), numpy.array(data_y))
def __init__(self, parent=None)
def _update_legend(self)
Overrides.