'Replot the entire graph.
This functions redraws everything on the graph, so it can be very slow'

def replot(self):

    self._bounds_cache = {}
    self._transform_cache = {}
    self.set_clean()
    self.update_antialiasing()
    self.update_legend()
    self.update_layout()
    self.update_zoom()
    self.update_axes()
    self.update_grid()
    self.update_filled_symbols()
    self.setSceneRect(QRectF(self.contentsRect()))
    self.viewport().update()
