def do_label(self):
        """
        Create label for x and y axis, title and suptitle
        """
        outputdict = self.outputdict
        xlabel_options = self.kwargs.get("xlabel_options", {})
        self.subplot.set_xlabel(
            self.kwargs.get("xlabel", "").format(**outputdict),
            **xlabel_options)
        ylabel_options = self.kwargs.get("ylabel_options", {})
        self.subplot.set_ylabel(
            self.kwargs.get("ylabel", "").format(**outputdict),
            **ylabel_options)
        suptitle = self.kwargs.get("suptitle", None)
        if suptitle is not None:
            suptitle_options = self.kwargs.get("suptitle_options", {})
            self.figure.suptitle(
                suptitle.format(**outputdict),
                fontsize=int(self.kwargs.get("suptitle_fontsize", 15)),
                **suptitle_options)
        title = self.kwargs.get("title", None)
        if title is not None:
            title_options = self.kwargs.get("title_options", {})
            self.subplot.set_title(
                title.format(**outputdict),
                fontsize=int(self.kwargs.get("title_fontsize", 12)),
                **title_options)
        xlim = self.kwargs.get("xlim", None)
        ylim = self.kwargs.get("ylim", None)
        if xlim is not None:
            self.subplot.set_xlim(xlim)
        if ylim is not None:
            self.subplot.set_ylim(ylim)
        # axis format
        self.subplot.ticklabel_format(
            style="sci", useOffset=False,
            scilimits=self.kwargs.get("scilimits", (-4, 4))
        )
        return self
def do_label ( self ) : outputdict = self . outputdict xlabel_options = self . kwargs . get ( "xlabel_options" , { } ) self . subplot . set_xlabel ( self . kwargs . get ( "xlabel" , "" ) . format ( ** outputdict ) , ** xlabel_options ) ylabel_options = self . kwargs . get ( "ylabel_options" , { } ) self . subplot . set_ylabel ( self . kwargs . get ( "ylabel" , "" ) . format ( ** outputdict ) , ** ylabel_options ) suptitle = self . kwargs . get ( "suptitle" , None ) if suptitle is not None : suptitle_options = self . kwargs . get ( "suptitle_options" , { } ) self . figure . suptitle ( suptitle . format ( ** outputdict ) , fontsize = int ( self . kwargs . get ( "suptitle_fontsize" , 15 ) ) , ** suptitle_options ) title = self . kwargs . get ( "title" , None ) if title is not None : title_options = self . kwargs . get ( "title_options" , { } ) self . subplot . set_title ( title . format ( ** outputdict ) , fontsize = int ( self . kwargs . get ( "title_fontsize" , 12 ) ) , ** title_options ) xlim = self . kwargs . get ( "xlim" , None ) ylim = self . kwargs . get ( "ylim" , None ) if xlim is not None : self . subplot . set_xlim ( xlim ) if ylim is not None : self . subplot . set_ylim ( ylim ) self . subplot . ticklabel_format ( style = "sci" , useOffset = False , scilimits = self . kwargs . get ( "scilimits" , ( - 4 , 4 ) ) ) return self
Create label for x and y axis, title and suptitle