suneku/plot.py
def restyle(func):
    """ function: Apply default style to a plotting function. """

    @wraps(func)
    def newfunc(*args,**kwargs):
        kwargs.setdefault('cmap',COLORMAP)
        figsize = kwargs.pop('figsize',FIGSIZE)

        fig = func(*args,**kwargs).legend(**LEGEND).get_figure()
        fig.set_size_inches(FIGSIZE)
        fig.tight_layout()

        return fig

    return newfunc
 function: Apply default style to a plotting function. 
Apply default style to a plotting function.
Apply default style to a plotting function .
def restyle(func):
    @wraps(func)
    def newfunc(*args,**kwargs):
        kwargs.setdefault('cmap',COLORMAP)
        figsize = kwargs.pop('figsize',FIGSIZE)
        fig = func(*args,**kwargs).legend(**LEGEND).get_figure()
        fig.set_size_inches(FIGSIZE)
        fig.tight_layout()
        return fig
    return newfunc
def restyle ( func ) : @ wraps ( func ) def newfunc ( * args , ** kwargs ) : kwargs . setdefault ( 'cmap' , COLORMAP ) figsize = kwargs . pop ( 'figsize' , FIGSIZE ) fig = func ( * args , ** kwargs ) . legend ( ** LEGEND ) . get_figure ( ) fig . set_size_inches ( FIGSIZE ) fig . tight_layout ( ) return fig return newfunc
function: Apply default style to a plotting function.
function : Apply default style to a plotting function .
""" function: Apply default style to a plotting function. """
func