Skip to content

Commit

Permalink
Merge pull request #249 from BuysDB/config_xticks
Browse files Browse the repository at this point in the history
Added xtickfontsize parameter
  • Loading branch information
BuysDB authored Jan 13, 2022
2 parents 45bf625 + 5b7db97 commit e291a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions singlecellmultiomics/utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, ref_path, contigs=None, ignore_contigs=None):
self.contigs = [contig for contig in self.contigs if contig in self.lengths]

def cn_heatmap(self, df,cell_font_size=3, max_cn=4, method='ward', cmap='bwr', yticklabels=True,
figsize=(15,20), xlabel = 'Contigs', ylabel='Cells', vmin=0, **kwargs ):
figsize=(15,20), xlabel = 'Contigs', ylabel='Cells', vmin=0, xtickfontsize=8, **kwargs ):
"""
Create a heatmap from a copy number matrix
Expand Down Expand Up @@ -155,7 +155,7 @@ def m(k):
xtick_label.append(contig)

ax_heatmap.set_xticks(xtick_pos)
ax_heatmap.set_xticklabels(xtick_label,rotation=0, fontsize=8)
ax_heatmap.set_xticklabels(xtick_label,rotation=0, fontsize=xtickfontsize)
ax_heatmap.set_xlabel(xlabel,labelpad=20)
ax_heatmap.set_ylabel(ylabel,labelpad=20)

Expand Down Expand Up @@ -198,7 +198,7 @@ def get_figure(self, figsize=(20,1)):

def __getitem__(self, contig):
return self.axis[contig]



def plot_plate(coordinate_values: dict,
Expand Down
2 changes: 1 addition & 1 deletion singlecellmultiomics/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.24'
__version__ = '0.1.25'

0 comments on commit e291a0c

Please sign in to comment.