In [1]:
%matplotlib notebook
import calour as ca
import matplotlib as mpl
In [2]:
a = ca.read_amplicon('data/artificial-simple.biom',
'data/artificial-simple.map.txt',
feature_metadata_file='data/artificial-simple.feature_md.txt',
min_reads=100, normalize=1000)
In [3]:
b = a.plot(sample_field='group',
gui='jupyter')
In [4]:
b = a.plot(sample_field='group',
bary_fields=['oxygen'],
barx_fields=['group', 'categorical'],
barx_label_kwargs=[{'color': 'b'}, {'color': 'white', 'size': 9}],
cmap='inferno',
gui='jupyter',
title='simple figure');
In [5]:
b = a.plot(sample_field='group', feature_field='taxonomy',
yticklabel_kwargs={'size': 9},
bary_fields=['oxygen'],
barx_fields=['group', 'categorical'],
barx_label_kwargs=[{'color': 'b'}, {'color': 'white', 'size': 9}],
cmap='viridis',
gui='jupyter',
title='simple figure');
In [6]:
b = a.plot(sample_field='group', feature_field='taxonomy', yticklabel_kwargs={'size': 9},
bary_fields=['oxygen'], barx_fields=['group', 'categorical'],
barx_label_kwargs=[{'color': 'b'}, {'color': 'white', 'size': 9}],
cmap='viridis', norm=mpl.colors.Normalize(),
gui='jupyter', title='simple figure');
In [ ]: