class_docstr: Bar plot. This is an internal plot targeted for developers, not intended for
  end-users.
  
  Parameters
  ----------
  count : dict
      A dictionary whose keys are labels and values are counts
  
  color : string, default=None
      Color for the bars, must be a valid matplotlib color
  
  name : string, default=None
      A value to identify this plot
  
  Notes
  -----
  .. versionadded:: 0.9
  
  
  Examples
  --------
  
  Create plot:
  
  .. plot::
  
      from sklearn_evaluation.plot._example import MyBar
      MyBar.from_raw_data(["banana", "banana", "apple", "pineapple", "apple"],
                              color="lightblue")
  
  Compare plots:
  
  
  .. plot::
  
      from sklearn_evaluation.plot._example import MyBar
      one = MyBar.from_raw_data(["banana", "banana", "apple", "pineapple", "apple"])
      another = MyBar.from_raw_data(["banana", "apple",  "pineapple"])
      one + another
docstr: Create the plot
  
  Parameters
  -----------
  ax : matplotlib.Axes
      An Axes object to add the plot to
docstr_tok: ["Create","the","plot","Parameters","--","--","--","--","--","-","ax",":","matplotlib.Axes","An","Axes","object","to","add","the","plot","to"]
code: def plot(self, ax=None):
      """Create the plot
  
      Parameters
      -----------
      ax : matplotlib.Axes
          An Axes object to add the plot to
      """
      if ax is None:
          _, ax = plt.subplots()
  
      ax.bar(
          list(range(len(self.count))),
          list(self.count.values()),
          color=self.color,
      )
  
      # properly label axis and ticks
      ax.set_xticks(list(range(len(self.count))), self.count.keys())
  
      ax.set_ylabel("Count")
      label = "" if self.name is None else f" ({self.name})"
      ax.set_title("Bar plot" + label)
  
      # remember to set these attributes
      self.ax_ = ax
      self.figure_ = ax.figure
  
      # remember to return self
      return self
  
imports: from collections import Counter
  import numpy
  import matplotlib.pyplot
  from sklearn_evaluation import __version__
  from sklearn_evaluation.plot.plot import AbstractComposedPlot, AbstractPlot
label_desc: Use image node_id 2 for calling the MyBar obj's underlying member method code with example usage: obj.plot(ax) and returns: self