docs: def histogram(self, counts, bin_edges, linestyle='solid'):
          """Plot a polar histogram.
  
          The user needs to supply the histogram.  This method only plots
          the results.  You can use NumPy's histogram function.
  
          :param counts: array containing the count values.
          :param bin_edges: array containing the bin edges in degrees
                            (or radians).
          :param linestyle: the line style used to connect the data points.
              May be None, or any line style accepted by TikZ (e.g. solid,
              dashed, dotted, thick, or even combinations like
              "red,thick,dashed").
  
          Example::
  
              >>> plot = artist.PolarPlot()
              >>> x = np.random.uniform(0, 360, size=1000)
              >>> n, bins = np.histogram(x, bins=np.linspace(0, 360, 37))
              >>> plot.histogram(n, bins)
  
          """
          if len(bin_edges) - 1 != len(counts):
              raise RuntimeError(
                  'The length of bin_edges should be length of counts + 1')
  
          x = []
          y = []
  
          if self.use_radians:
              circle = 2 * np.pi
          else:
              circle = 360.
  
          step = circle / 1800.
  
          for i in range(len(bin_edges) - 1):
              for bin_edge in np.arange(bin_edges[i], bin_edges[i + 1],
                                        step=step):
                  x.append(bin_edge)
                  y.append(counts[i])
              x.append(bin_edges[i + 1])
              y.append(counts[i])
  
          # If last edge is same as first bin edge, connect the ends.
          if bin_edges[-1] % circle == bin_edges[0] % circle:
              x.append(bin_edges[0])
              y.append(counts[0])
  
          self.plot(x, y, mark=None, linestyle=linestyle)