parameters: (self, peak_id, centre, height, fwhm)
docstring: Update a peak marker.
          :param peak_id: An id of the marker to update.
          :param centre: A new peak centre.
          :param height: A new peak height.
          :param fwhm: A new peak width.
docstring_summary: Update a peak marker.
          :param peak_id: An id of the marker to update.
          :param centre: A new peak centre.
          :param height: A new peak height.
          :param fwhm: A new peak width.
docstring_tokens: Update a peak marker . : param peak_id : An id of the marker to update . : param centre : A new peak centre . : param height : A new peak height . : param fwhm : A new peak width .
function: def update_peak(self, peak_id, centre, height, fwhm):
          """
          Update a peak marker.
          :param peak_id: An id of the marker to update.
          :param centre: A new peak centre.
          :param height: A new peak height.
          :param fwhm: A new peak width.
          """
          for pm in self.peak_markers:
              if pm.peak_id == peak_id:
                  pm.update_peak(centre, height, fwhm)
          self.canvas.draw()
function_tokens: def update_peak ( self , peak_id , centre , height , fwhm ) : for pm in self . peak_markers : if pm . peak_id == peak_id : pm . update_peak ( centre , height , fwhm ) self . canvas . draw ( )