Пример #1
0
def kde_full(df):

    ast.kde(data=df,
            x='C',
            cumulative=True,
            palette='Reds',
            style='astetik',
            dpi=72,
            title='This is a title',
            sub_title='And this a subtitle',
            x_label='this is x label',
            y_label='and this y',
            legend=False,
            x_scale='log',
            y_scale='symlog',
            x_limit=1)

    ast.kde(data=df,
            x='A',
            y='B',
            palette='Reds',
            style='astetik',
            dpi=72,
            title='This is a title',
            sub_title='And this a subtitle',
            x_label='this is x label',
            y_label='and this y',
            legend=False,
            x_scale='log',
            y_scale='symlog',
            x_limit=1,
            y_limit=[1, 199])
Пример #2
0
    def plot_kde(self, x, y=None):
        '''Kernel Destiny Estimation type histogram with
        support for 1 or 2 axis of data'''

        try:
            import astetik as ast
            return ast.kde(self.data, x, y)
        except RuntimeError:
            print('Matplotlib Runtime Error. Plots will not work.')
Пример #3
0
def test_simple_minimal(df):

    ast.corr(df)
    ast.kde(data=df, x='A')
    ast.hist(df, x='A')
    ast.pie(df, x='other')
    ast.swarm(df, x='A', y='B', hue='even')
    ast.scat(df, x='A', y='B', hue='even')
    ast.line(df, x='A')
    ast.grid(df, x='A', y='B', col='even')
    ast.box(df, x='odd', y='A', hue='even')
    ast.violin(df, x='odd', y='A', hue='even')
    ast.strip(df, x='odd', y='B', hue='even')
    ast.count(df, x='cats')
    ast.bargrid(df, x='even', y='B', hue='other', col='odd')
    ast.overlap(df, x='A', y='B', label_col='other')
    ast.multikde(df, x='A', label_col='even')
    ast.compare(df, x='A', y=['B', 'C'], label_col='other')
    ast.multicount(df, x='even', hue='odd', col='other')
Пример #4
0
    def plot_kde(self, x=None, y=None, title='', x_label='', y_label=''):

        '''Kernel Destiny Estimation type histogram with
        support for 1 or 2 axis of data'''

        try:
            import astetik as ast
            return ast.kde(self.data, x=x, y=y, title=title, x_label=x_label, y_label=y_label)
        except RuntimeError:
            print('Matplotlib Runtime Error. Plots will not work.')
Пример #5
0
    def plot_kde(self, x='val_acc', y=None):
        '''Kernel Destiny Estimation type histogram with
        support for 1 or 2 axis of data'''

        return kde(self.data, x, y)