new_contents: import matplotlib
  matplotlib.use('tkagg')
  import numpy as np
  from matplotlib.patches import RegularPolygon
  from matplotlib.collections import PatchCollection
  
  
  class CameraPlot(object):
      '''A Class for a camera plot'''
  
      def __init__(
          self,
          telescope,
          ax,
          data=None,
          cmap='gray',
          vmin=None,
          vmax=None,
      ):
          '''
          :telescope: the telescope class for the plot
          :data: array-like with one value for each pixel
          :cmap: a matplotlib colormap string or instance
          :vmin: minimum value of the colormap
          :vmax: maximum value of the colormap
  
          '''
          self.telescope = telescope
          if data is None:
              self._data = np.zeros(telescope.n_pixel)
          else:
              self._data = data
  
          patches = []
          if telescope.pixel_shape == 'hexagon':
              for xy in zip(telescope.pixel_x, telescope.pixel_y):
                  patches.append(
                      RegularPolygon(
                          xy=xy,
                          numVertices=6,
                          radius=telescope.pixel_size,
                          orientation=telescope.pixel_orientation,
                      )
                  )
          self.plot = PatchCollection(patches)
          self.plot.set_linewidth(0)
          self.plot.set_cmap(cmap)
          self.plot.set_array(data)
          self.plot.set_clim(vmin, vmax)
          self.ax = ax
          self.ax.axis('off')
          self.ax.add_collection(self.plot)
          self.ax.set_xlim(
              self.telescope.pixel_x.min() - self.telescope.pixel_size,
              self.telescope.pixel_x.max() + self.telescope.pixel_size,
          )
          self.ax.set_ylim(
              self.telescope.pixel_y.min() - self.telescope.pixel_size,
              self.telescope.pixel_y.max() + self.telescope.pixel_size,
          )
  
      @property
      def data(self):
          return self._data
  
      @data.setter
      def data(self, value):
          self._data
          self.update()
  
subject: add camera plot class