code: def plot(self):
          
          # The PyTables node tied to the current leaf of the databases tree
          current = self.vtgui.dbs_tree_view.currentIndex()
          leaf = self.vtgui.dbs_tree_model.nodeFromIndex(current).node
  
          data_name = leaf.name
  
          hists_1d = ['HistRelBcid', 'HistErrorCounter', 'HistTriggerErrorCounter', 'HistServiceRecord', 'HistTot', 'HistTdc', 'HistClusterTot', 'HistClusterSize']
          hists_2d = ['HistOcc', 'Enable', 'Imon', 'C_High', 'EnableDigInj', 'C_Low', 'FDAC', 'TDAC', 'HistTdcPixel', 'HistTotPixel', 'HistThreshold', 'HistNoise', 'HistThresholdFitted', 'HistNoiseFitted', 'HistThresholdFittedCalib', 'HistNoiseFittedCalib']
  
          if data_name in hists_1d:
              plot_1d_hist(hist=leaf[:], title=data_name)
          elif data_name in hists_2d:
              if data_name == 'HistOcc':
                  leaf = np.sum(leaf[:], axis=2)
              plot_2d_hist(hist=leaf[:], title=data_name)
          elif 'Table' in str(type(leaf)) and len(leaf[:].dtype.names) <= 3:  # detect tables with less than 4 columns
              plot_table(leaf[:], title=data_name)
          elif data_name == 'HitOrCalibration':
              print 'Comming soon'
          else:
              print 'Plotting', data_name, '(%s) is not supported!' % type(leaf)
docs: Export a given dataset to a `CSV` file.
  
          This method is a slot connected to the `export` QAction. See the
          :meth:`addEntry` method for details.