def update(self, xData, yData):
    self.xData = np.append(self.xData, xData)
self.yData = np.append(self.yData, yData)
new_hexbin = self.ax.hexbin(self.xData, self.yData)
self.graph.update_from(new_hexbin)
How do I update a matplotlib hexbin plot?