parameters: (ax, ws, color_norm=None, normalize_by_bin_width=None)
return_statement: return pcm
docstring: Plot a pcolormesh plot of the given workspace on the given axis
      :param ax: A matplotlib axes instance
      :param ws: A mantid workspace instance
      :param color_norm: A matplotlib.colours Normalize instance (or any of its subclasses)
      :param normalize_by_bin_width: Optional keyword argument to pass to imshow in the event of a plot restoration
      :return:
docstring_summary: Plot a pcolormesh plot of the given workspace on the given axis
      :param ax: A matplotlib axes instance
      :param ws: A mantid workspace instance
      :param color_norm: A matplotlib.colours Normalize instance (or any of its subclasses)
      :param normalize_by_bin_width: Optional keyword argument to pass to imshow in the event of a plot restoration
      :return:
docstring_tokens: Plot a pcolormesh plot of the given workspace on the given axis : param ax : A matplotlib axes instance : param ws : A mantid workspace instance : param color_norm : A matplotlib . colours Normalize instance ( or any of its subclasses ) : param normalize_by_bin_width : Optional keyword argument to pass to imshow in the event of a plot restoration : return :
function: def pcolormesh_on_axis(ax, ws, color_norm=None, normalize_by_bin_width=None):
      """
      Plot a pcolormesh plot of the given workspace on the given axis
      :param ax: A matplotlib axes instance
      :param ws: A mantid workspace instance
      :param color_norm: A matplotlib.colours Normalize instance (or any of its subclasses)
      :param normalize_by_bin_width: Optional keyword argument to pass to imshow in the event of a plot restoration
      :return:
      """
      ax.clear()
      ax.set_title(ws.name())
      scale = _get_colorbar_scale() if not color_norm else color_norm
  
      if use_imshow(ws):
          pcm = ax.imshow(ws, cmap=ConfigService.getString("plots.images.Colormap"), aspect='auto', origin='lower',
                          norm=scale, normalize_by_bin_width=normalize_by_bin_width)
          # remove normalize_by_bin_width from cargs if present so that this can be toggled in future
          for cargs in pcm.axes.creation_args:
              cargs.pop('normalize_by_bin_width')
      else:
          pcm = ax.pcolormesh(ws, cmap=ConfigService.getString("plots.images.Colormap"), norm=scale)
  
      return pcm
function_tokens: def pcolormesh_on_axis ( ax , ws , color_norm = None , normalize_by_bin_width = None ) : ax . clear ( ) ax . set_title ( ws . name ( ) ) scale = _get_colorbar_scale ( ) if not color_norm else color_norm if use_imshow ( ws ) : pcm = ax . imshow ( ws , cmap = ConfigService . getString ( "plots.images.Colormap" ) , aspect = 'auto' , origin = 'lower' , norm = scale , normalize_by_bin_width = normalize_by_bin_width ) # remove normalize_by_bin_width from cargs if present so that this can be toggled in future for cargs in pcm . axes . creation_args : cargs . pop ( 'normalize_by_bin_width' ) else : pcm = ax . pcolormesh ( ws , cmap = ConfigService . getString ( "plots.images.Colormap" ) , norm = scale ) return pcm