def box_full(df): ast.box(data=df, x='A', y='even', hue='odd', 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, 21])
def plot_box(self, x, y='val_acc', hue=None): '''A box plot with data on two axis x = data for the x axis y = data for the y axis hue = data for the hue separation ''' return box(self.data, x, y, hue)
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')
def plot_box(self, x, y, hue=None): '''A box plot with data on two axis x = data for the x axis y = data for the y axis hue = data for the hue separation ''' try: import astetik as ast return ast.box(self.data, x, y, hue) except RuntimeError: print('Matplotlib Runtime Error. Plots will not work.')