(self, ax=None)
return axes
Create bar chart of results
Create bar chart of results
Create bar chart of results
def plot(self, ax=None):
        '''Create bar chart of results'''
        Si_df = self.to_df()

        if isinstance(Si_df, (list, tuple)):
            import matplotlib.pyplot as plt  # type: ignore

            if ax is None:
                fig, ax = plt.subplots(1, len(Si_df))

            for idx, f in enumerate(Si_df):
                barplot(f, ax=ax[idx])

            axes = ax
        else:
            axes = barplot(Si_df, ax=ax)

        return axes
def plot ( self , ax = None ) : Si_df = self . to_df ( ) if isinstance ( Si_df , ( list , tuple ) ) : import matplotlib . pyplot as plt # type: ignore if ax is None : fig , ax = plt . subplots ( 1 , len ( Si_df ) ) for idx , f in enumerate ( Si_df ) : barplot ( f , ax = ax [ idx ] ) axes = ax else : axes = barplot ( Si_df , ax = ax ) return axes