def new_pspicture(self, name=None, pspict=None): if name == None: number = len(self.record_pspicture) name = "sub" + latinize(str(number)) if pspict is None: from Picture import Picture pspict = Picture("FIG" + self.name + "PICT" + name) pspict.mother = self pspict.figure_mother = self.mother # The mother of a pspict inside a subfigure is the figure (not the subfigure) pspict.subfigure_mother = self self._add_pspicture(pspict) return pspict
def new_pspicture(self, name=None, pspict=None): if name == None: number = len(self.record_pspicture) name = "sub" + latinize(str(number)) if pspict == None: from Picture import Picture # Simplifying the auxiliary files names and then also the # logging messages. November 2016. #pspict=Picture("FIG"+self.name+"PICT"+name) #logging("self.name = "+self.name) #logging("name = "+name) pspict = Picture(name) pspict.figure_mother = self self._add_pspicture(pspict) return pspict