In [1]:
%run GLOBALS.py
In [2]:
import matplotlib as mpl
mpl.use('TkAgg')
import matplotlib.pyplot as plt
%matplotlib inline
import pandas as pd
import seaborn as sns
In [3]:
mpl.rcParams.update({
'font.size': 12, 'axes.titlesize': 14, 'axes.labelsize': 12,
'xtick.labelsize': 10, 'ytick.labelsize': 13,
'font.family': 'Lato', 'font.weight': 600,
'axes.labelweight': 600, 'axes.titleweight': 600,
#'figure.autolayout': True
})
In [4]:
import abundance_plot_utils
In [5]:
data_reduced = pd.read_csv(MAIN_DIR + "/results/reduced_data--all_taxonomy_remains.csv")
In [6]:
ax = abundance_plot_utils.heatmap_from_taxa_dict(
dataframe = data_reduced,
taxa_dict = {'Family':['Bacteriovoracaceae','Myxococcaceae']},
size_spec = 2,
annotate=False,
aspect_spec = 2,
main_dir=MAIN_DIR
)
ax.set_yticklabels(rotation=0)
#plt.yticks(rotation=45)
Out[6]:
In [7]:
ax = abundance_plot_utils.heatmap_from_taxa_dict(
dataframe = data_reduced,
taxa_dict = {'Family':['Bacteriovoracaceae','Myxococcaceae']},
size_spec = 2,
annotate=True,
aspect_spec = 7,
main_dir=MAIN_DIR
)
ax.set_yticklabels(rotation=0)
#plt.yticks(rotation=45)
Out[7]:
In [8]:
ax.fig.figure
In [9]:
ax.set_ylabels(rotation=45)
Out[9]:
In [ ]:
In [ ]: