Creation of the method update for the class Window

This method take 3 arguments:
- The curve name
- The set of X to plot
- The set of Y to plot