def plot(self):
<EOL>current = self.vtgui.dbs_tree_view.currentIndex()<EOL>leaf = self.vtgui.dbs_tree_model.nodeFromIndex(current).node<EOL>data_name = leaf.name<EOL>hists_1d = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>hists_2d = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>if data_name in hists_1d:<EOL><INDENT>plot_1d_hist(hist=leaf[:], title=data_name)<EOL><DEDENT>elif data_name in hists_2d:<EOL><INDENT>if data_name == '<STR_LIT>':<EOL><INDENT>leaf = np.sum(leaf[:], axis=<NUM_LIT:2>)<EOL><DEDENT>plot_2d_hist(hist=leaf[:], title=data_name)<EOL><DEDENT>elif '<STR_LIT>' in str(type(leaf)) and len(leaf[:].dtype.names) <= <NUM_LIT:3>:  <EOL><INDENT>plot_table(leaf[:], title=data_name)<EOL><DEDENT>elif data_name == '<STR_LIT>':<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>', data_name, '<STR_LIT>' % type(leaf))<EOL><DEDENT>
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.