This method is similar to __get_headings_of_the_current_page.
        It will organise plots to match the stucture of a page.
        The output will be passed to render to link elements to its path.

def __get_plots_of_the_current_page(self, section, page):
        """This method is similar to __get_headings_of_the_current_page.
        It will organise plots to match the stucture of a page.
        The output will be passed to render to link elements to its path."""
        
        plots = []
        structure = [len(x) for x in self.sections[section].pages[page].layout]
        for key in self.sections[section].pages[page].elements.keys():
            if self.sections[section].pages[page].elements[key].plot_object is None:
                plots.append(None)
            else:
                plots.append(self.sections[section].pages[page].elements[key].name)


        plots_sub = []
        for idx, i in enumerate(list(accumulate(structure))):
            if idx == 0:
                plots_sub.append(plots[0:i])
            else :
                plots_sub.append(plots[list(accumulate(structure))[idx - 1]:i])

        return plots_sub